voyent
JavascriptContext includeLib - removeLib?  XML
Forum Index -> General Help
Author Message
qpid

Joined: 09/Nov/2007 00:00:00
Messages: 21
Offline


Hi Icefaces team and forum users,

I load a JavaScript file with the JavascriptContext.includeLib method. That works as expected.

After a redirect navigation the lib is still included.

Is there a way to remove an included JavaScript lib?

reagards qpid
qpid

Joined: 09/Nov/2007 00:00:00
Messages: 21
Offline


Can someone confirm this behaviour or is the scenario inadequately described?

Or maybe I misunderstand the functionality of including a JavaScript Lib within the FacesContext?
michelle2

Joined: 14/Nov/2007 00:00:00
Messages: 449
Offline


qpid wrote:
Can someone confirm this behaviour or is the scenario inadequately described?

Or maybe I misunderstand the functionality of including a JavaScript Lib within the FacesContext? 


It should stay until the next dom request.

are you loading it like this.

public static final String PARTS_EXTRAS = "/xmlhttp" + StartupTime.getStartupInc() + "parts-new.js";

public static final String MAPPER_EXTRAS = "/xmlhttp" + StartupTime.getStartupInc() + "mapper-extras.js";


JavascriptContext.includeLib(McvJavascriptContext.PARTS_EXTRAS,
FacesContext.getCurrentInstance());
System.out.println("mcv context loaded");
//
JavascriptContext.includeLibJavascriptContext.BROWSER_EXTRAS,
// FacesContext.getCurrentInstance());
System.out.println("browser extras loaded");

[Email]
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team