-
1. Re: ModalPanel Error Messages causing hide
somefatman Jul 20, 2010 3:45 PM (in response to somefatman)Actually, I am also having the same problem with a table I added to the modalPanel.
The panel's code is now:
{code}<rich:modalPanel id="panel">
<f:facet name="controls"><h:panelGroup>
<h:outputLabel value="X" id="hidelink"/>
<r:componentControl id="hidelinkControl" for="panel" attachTo="hidelink" operation="hide" event="onclick" />
</h:panelGroup>
</f:facet>
<h:form><div id="message" align="center"><h:messages id="entryError" errorClass="errorMessage" /></div>
<!--- some feilds -->
<h:commandButton value=" ADD " action="#{controller.add}"><a:support event="onClick" reRender="entryError, table" />
</h:commandButton>
<r:scrollableDataTable id="table" >
<!--columns -->
</r:scrollableDataTable>
</h:form>
</rich:modalPanel>{code}
When I click the add button, a row is to be added to the table in the backing bean. A row is added but the panel closes after the button is clicked. -
2. Re: ModalPanel Error Messages causing hide
nbelaevski Jul 21, 2010 4:10 AM (in response to somefatman)Hi Doug,
Try removing a4j:support and replacing h:commandLink with a4j:commandLink.
-
3. Re: ModalPanel Error Messages causing hide
somefatman Jul 21, 2010 10:05 AM (in response to nbelaevski)Thanks, that solved the problem.