1 Reply Latest reply on Nov 23, 2011 2:20 PM by Christian Peter

    Is there a way to show conditionally one or other popupPanel?

    Edilmar Alves Expert



      I use JSF2 + RF4.

      Then, I need to create a a4j:commandButton with the following logic:


      if somecondition is true into "oncomplete" event

        then show popupPanel1

        else show popupPanel2


      I need this exactly in "oncomplete" event. The code is like http://richfaces-showcase.appspot.com/richfaces/component-sample.jsf?demo=dataTable&sample=dataTableEdit&skin=blueSky but in Showcase there is only one button to edit. I need two types of edit panels, depending on the condition.


      Is there a way to do this?