-
1. Re: Concerning EL in includes
nbelaevski Feb 21, 2010 1:11 PM (in response to julk)Hi,
Can you please try a4j:include?
-
2. Re: Concerning EL in includes
julk Feb 21, 2010 1:37 PM (in response to nbelaevski)Oh, yea, forgot to mention that. I've tried already - it's indifferent.
However I've got some more clues that I've just found out about:
If i put something like this:
<a4j:outputPanel id="output"> <h:outputText value="#{backingBean.page}"/> <a4j:include viewId="#{backingBean.page}"/> </a4j:outputPanel>
than after the first click on the link I get:
/address/of/the/new/page.xhtml "An included old page"
after the second click I get:
/address/of/the/new/page.xhtml "An included new page"
Maybe that's of some clue.
Also if I switch backingBean scope to request the second click has the same effect as the first.
Thanks for the reply!
Oh, sorry, another thing: I currently use jboss-el-2.0.1.GA.jar. However I tried with the default ones for JSF 1.2 and encountered the identical problem.
-
3. Re: Concerning EL in includes
ilya_shaikovsky Feb 22, 2010 7:07 AM (in response to julk)this
<h:form> <a4j:include viewId="#{profile.page}" /> <a4j:commandButton value="to page 2" reRender="wizard" ajaxSingle="true"> <a4j:actionparam name="topage2" value="/richfaces/include/examples/wstep2.xhtml" assignTo="#{profile.page}"/> </a4j:commandButton> </h:form>
Update ("wizard" - id of the panel around the form)
and
private String page="/richfaces/include/examples/wstep1.xhtml"; public String getPage() { return page; } public void setPage(String page) { this.page = page; }
works for me.
seems need you full sample in war for more deep investigation.
-
4. Re: Concerning EL in includes
julk Feb 22, 2010 12:17 PM (in response to ilya_shaikovsky)Oh stupid, stupid me. I finally found the bug. The problem was the option:
<context-param> <param-name>facelets.BUILD_BEFORE_RESTORE</param-name> <param-value>true</param-value> </context-param>
which I left in place after fighting with memory usage. Actually I think this was the root of all evil - so I'll go and post this resolution in the other threads I started.I thank you again very much for your help! I really do appreciate.