This content has been marked as final.
Show 2 replies
-
1. Re: Mixing rich:messages and rich:componentControl ? Is it P
nbelaevski Mar 5, 2009 6:05 PM (in response to sebekk23)Hello,
You can follow this path:<a4j:outputPanel ajaxRendered="true" style="display: none;"> <h:panelGroup rendered="#{facesContext.maximumSeverity != null}"> <script type="text/javascript"> #{rich:component('persons')}.show(); </script> </h:panelGroup> </a4j:outputPanel>
-
2. Re: Mixing rich:messages and rich:componentControl ? Is it P
sebekk23 Mar 6, 2009 1:14 PM (in response to sebekk23)Thx :D ... i made something like this ... maybe it will be helpful for someone..
<a4j:outputPanel ajaxRendered="true" style="display: none;"> <h:panelGroup rendered="#{userList.beanErrorOccurred}"> <script type="text/javascript"> #{rich:component('errorPanel')}.show() </script> </h:panelGroup> </a4j:outputPanel> <rich:modalPanel id="errorPanel" autosized="true" width="200"> <f:facet name="header"> <rich:messages/> </f:facet> <h:form> <table width="100%"> <tbody> <tr> <td align="center" width="50%"> <a4j:commandButton value="Tak" ajaxSingle="true" onclick="#{rich:component('errorPanel')}.hide();" > <a4j:actionparam value="#{false}" assignTo="#{userList.beanErrorOccurred}" /> </a4j:commandButton> </td> <td align="center" width="50%"> <a4j:commandButton value="Nie" ajaxSingle="true" onclick="#{rich:component('errorPanel')}.hide();#{rich:component('addPanel')}.hide();#{rich:component('editPanel')}.hide();" > <a4j:actionparam value="#{false}" assignTo="#{userList.beanErrorOccurred}" /> </a4j:commandButton> </td> </tr> </tbody> </table> </h:form> </rich:modalPanel>