-
1. Re: t:commandSortHeader will close the rich:modalPanel
mario_lanza Jul 16, 2007 9:22 AM (in response to mario_lanza)...and the form is alone in a second a4j region on that page:
<a4j:region id="a4j_values" renderRegionOnly="true"> <h:form...
-
2. Re: t:commandSortHeader will close the rich:modalPanel
mario_lanza Jul 17, 2007 12:50 PM (in response to mario_lanza)...no ideas? :-(
-
3. Re: t:commandSortHeader will close the rich:modalPanel
tkalactomo Jul 19, 2007 2:32 AM (in response to mario_lanza)It must be closed because clicking on the sort header of the datatable whole page is submited and rerendered.So standard submit's will always rerender whole page and your modal panel will close...
-
4. Re: t:commandSortHeader will close the rich:modalPanel
sergeysmirnov Jul 19, 2007 3:05 AM (in response to mario_lanza)Yes, It must be closed because t:commandSortHeader is not an ajax command component and the full page is reloaded. The panel is closed on the new page by default.
What the richfaces version do you use. The code looks very strange. Only very first release of 3.0.0 allows to wrap modal panel with form. It should not work in other versions.
What you can do is using the ajaxSubmit for a4j:form that converts t:commandSortHeader into the ajax command.
Anyway, before doing so, you have to follow the following two rules:
1. modal panel must NOT be inside the form
2. modal panel must has its own form inside
after that you can use a4j:form ajaxSubmit="true" reRender="values_table" for inner form. -
5. Re: t:commandSortHeader will close the rich:modalPanel
tkalactomo Jul 19, 2007 3:31 AM (in response to mario_lanza)
Anyway, before doing so, you have to follow the following two rules:
1. modal panel must NOT be inside the form
2. modal panel must has its own form inside
So if I'm getting it the right way it would look something like this:<rich:modalPanel id='panel_values'> <h:form> <f:facet name="header"> </f:facet> <f:facet name="controls"> </f:facet> </h:form> </rich:modalPanel>
-
6. Re: t:commandSortHeader will close the rich:modalPanel
sergeysmirnov Jul 19, 2007 11:23 AM (in response to mario_lanza)No, it is a wrong code. h:form has no facets.
-
7. Re: t:commandSortHeader will close the rich:modalPanel
tkalactomo Jul 20, 2007 2:19 AM (in response to mario_lanza)"SergeySmirnov" wrote:
No, it is a wrong code. h:form has no facets.
Ok,thanks Sergey, i guess then this is the right way.<rich:modalPanel id='panel_values'> <f:facet name="header"> </f:facet> <f:facet name="controls"> </f:facet> <h:form> </h:form> </rich:modalPanel>
-
8. Re: t:commandSortHeader will close the rich:modalPanel
sergeysmirnov Jul 20, 2007 3:17 AM (in response to mario_lanza)much better.