This content has been marked as final.
Show 4 replies
-
1. Re: dynamically include xhtml pages by selecting radiobutton
nbelaevski Apr 14, 2010 6:08 PM (in response to mcremolini)Hi Matteo,
Can you please check whether this happens if included pages are not switched by AJAX (i.e. include pages by specifying inline their viewId and check)?
-
2. Re: dynamically include xhtml pages by selecting radiobutton
ilya_shaikovsky Apr 15, 2010 3:41 AM (in response to nbelaevski)checked with local richfaces-demo sample by adding radio-button you mentioned:
<h:form> <h:selectOneRadio id="insertMode" value="#{userBean.name}"> <f:selectItem itemLabel="step 1" itemValue="/richfaces/include/examples/wstep1.xhtml"/> <f:selectItem itemLabel="step 2" itemValue="/richfaces/include/examples/wstep2.xhtml"/> <a4j:support event="onclick" eventsQueue="insertModeQueue" ajaxSingle="true" limitToList="true" reRender="insertModeContainer"></a4j:support> </h:selectOneRadio> <a4j:outputPanel id="insertModeContainer"> <a4j:include viewId="#{empty userBean.name ? '/richfaces/include/examples/wstep1.xhtml' : userBean.name}" /> </a4j:outputPanel> </h:form>
Works fine. So please follow Nick proposal and attach some sample if will not find the problem.
-
3. Re: dynamically include xhtml pages by selecting radiobutton
mcremolini Apr 15, 2010 6:56 AM (in response to mcremolini)Hi guys,
thanx for the answers.
After some tries we found that the problem was the presence of tag a4j:form (but with h:form the problem still exists) inside included pages.
With empty included page everything is working fine.
Can u try including a page with a form inside just to check it?
Many thanx.
Matteo
-
4. Re: dynamically include xhtml pages by selecting radiobutton
ilya_shaikovsky Apr 15, 2010 9:52 AM (in response to mcremolini)nested forms not allowed in jsf