This content has been marked as final.
Show 2 replies
-
1. Re: h and a4j commandButton in popupPanel
paul.dijou May 10, 2012 1:39 PM (in response to segu)Hi there,
You should take a look at this demo : https://showcase.richfaces.org/richfaces/component-sample.jsf?demo=dataTable&sample=dataTableEdit&skin=blueSky
It provides a popupPanel with a required input on it that dissapear only when there is no error message. The trick is :
oncomplete="if (#{facesContext.maximumSeverity==null}) {#{rich:component('editPane')}.hide();}"
on the a4j:commandButton. So, after having executing your action, you hide your panel only if there is no error in the facesContext.
Regards,
-
2. Re: h and a4j commandButton in popupPanel
segu May 11, 2012 9:25 AM (in response to paul.dijou)Hi Paul,
It works fine! Thx a lot.
Regards