-
1. Re: Modal Panel and ReRender
gerch Jan 17, 2008 2:03 PM (in response to gerch)oh ok
i solved the problem...
for people that are interested in the solution:
dont rerender the whole modalPanel but for example an panelgrid that is included.
<a4j:commandLink id="modify" actionListener="#{adminHome.prepareModify}" value="modifyRow" onclick="Richfaces.showModalPanel('newHomeEntry',{top:200})" reRender="insidePanel">
...
<rich:modalPanel id="newHomeEntry" zindex="2000" autosized="true" >
...
<h:panelGroup id="insidePanel"/>
...
</rich:modalPanel> -
2. Re: Modal Panel and ReRender
sergeysmirnov Jan 17, 2008 2:05 PM (in response to gerch)instead of pointing to the modalPanel id, point to the any component inside the modalPanel that is going to be reRendered. For example, wrap the content of the modal panel with h:panelGroup (h:panelGrid, a4j:outputPanel or what ever) and point to it. In this case, first, the modal panel appears, then, after the response is done, the content of it just uploaded with actual value.
If you do not want to show the panel before the actual content come, use oncomplete instead of onclick -
3. Re: Modal Panel and ReRender
sergeysmirnov Jan 17, 2008 2:06 PM (in response to gerch)Ok. :-) You was faster with your own solution. Please, just consider that h:panelGroup render < span >< /span > by default. If you content contain any block tags, it is not correct to wrap them with span (according to the html standards). The solution is using < h:panelGroup style="display:block" >
-
4. Re: Modal Panel and ReRender
gerch Jan 17, 2008 2:14 PM (in response to gerch)cool thank you for the info