This content has been marked as final. Show 1 reply
always make sure yo mention the JDeveloper version. Apparently you use JDeveloper 11g R2 and JSF 2 as otherwise using EL in this form is not possible. Anyway, don't rely on people guessing.
I am wondering why you read the JS from the page flow scope instead of using teh ExtendedRenderKitService to invoke JS on the client
For more complex JS string compositions, use the StringBuffer class (which also is better to use if you want to add dynamic data read from a model)
//Apache Trinidad Class ExtendedRenderKitService service = Service.getRenderKitService(FacesContext.getCurrentInstance(), ExtendedRenderKitService.class); service.addScript(FacesContext.getCurrentInstance(), "alert('hello world');");
+"af:resource tag is encompassed in a container component (af:panelFormLayout) which means it shouldn't be cached"+
No guarantee that this is not cached unless you partially refresh the surrounding component. Still then, your EL uses "$" which is an immediate call upon JSF compile time whereas PPR is deferred. Using the extended renderkit service is the better way of solving your coding issue