This content has been marked as final.
Show 4 replies
-
1. Re: TabPanel closes ModalPanel
nbelaevski Jan 22, 2009 7:31 PM (in response to frer)Hello Francois,
rich:modalPanel is closed because it is inside a4j:outputPanel having ajaxRendered="true". -
2. Re: TabPanel closes ModalPanel
frer Jan 23, 2009 9:01 AM (in response to frer)Great! Thanks a lot that indeed fixed my example.
One little more thing:
I've got to say I'm a little confused with the use of a4j:outputPanel. In my application page (you'll notice that I simplified it here for this post) I remember needing the outputPanel to be able to get my fields updated... I read the doc:Creates an AJAX-enabled part of the page. For a normal request, render a <span> or <div> HTML element depending on the value of the "layout" attribute, "inline" or "block". (The "id" attribute will be the value of the clientId property.) For an AJAX request, the content of this element is included in the response if the value of the property, "ajaxRendered", is set to true.
But still don't grasp its purpose. Could someone please explain exactly what its for?
THank you very much for your help -
3. Re: TabPanel closes ModalPanel
ilya_shaikovsky Jan 23, 2009 9:13 AM (in response to frer)you could reRedner parts of the pages in a next ways:
<a4j:outputPanel ajaxRendered="#{bean.autoRendered}" id="out"> ...some fields there <h:outputText id="result" .../> ...some fields there </a4j:outputPanel> <a4j:commandLink reRender="#{bean.toRender}>
1) Concrete elements update.
autoRendered=false, toRender='result'
just outputText will be updated.
2) Some part of the page update.
autoRendered=false, toRender='out'
whole outputPanel with its children updated.
3) Automatically updated area
autoRendered=true toRender=""
the panel updated automatically without specifying in reRender from any ajax request on the page.(excluding renderRegionOnly marked regions) -
4. Re: TabPanel closes ModalPanel
frer Jan 23, 2009 11:51 AM (in response to frer)excellent!
Thank you for the clarification