- 
        1. Re: validation modal panel for h:commandButtonsivaprasad9394 Sep 19, 2010 9:00 PM (in response to akaine)I think in h:commandButton you can't achieve this ,try like this ajax commandButton oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editBlacklistingModal')}.hide();" <a4j:commandButton value="Submit" action="#{.......}" reRender="SampleModal" oncomplete="if (#{facesContext.maximumSeverity!=null}) #{rich:component('SampleModal')}.show();" /> Inside modelpanel use h:messages or rich:messages 
- 
        2. Re: validation modal panel for h:commandButtonliuliu Sep 20, 2010 3:25 AM (in response to akaine)1 of 1 people found this helpfulhi, you can do it with h:commandbutton, you need to use showWhenRendered="#{not (facesContext.maximumSeverity==null)}" 
- 
        3. Re: validation modal panel for h:commandButtonakaine Sep 20, 2010 7:22 PM (in response to sivaprasad9394)sivaprasad krishnaswamy wrote: I think in h:commandButton you can't achieve this ,try like this ajax commandButton oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editBlacklistingModal')}.hide();" <a4j:commandButton value="Submit" action="#{.......}" reRender="SampleModal" oncomplete="if (#{facesContext.maximumSeverity!=null}) #{rich:component('SampleModal')}.show();" /> Inside modelpanel use h:messages or rich:messages As I mentionned in the first post I am using the a4j approach. I was trying to change AJAX to JSF submits only because of some RF bugs. liumin hu wrote: hi, you can do it with h:commandbutton, you need to use showWhenRendered="#{not (facesContext.maximumSeverity==null)}" I see the problem clearly now. Yes, that is the correct answer in pure JSF submit terms. Thanks.I understood that I must search for the solution in other place. This is not the first time I have problems because of using RF AJAX forwarding mechanism.
 
     
    