1 Reply Latest reply on Feb 27, 2012 12:30 PM by mpgong

    How to call popupPanel to show from javascript function?

    mpgong

      Hello,

       

      I have a popupPanel that i want to show using javascript but not using the rich:component method.

       

      I know i can do this

       

      <a4j:commandButton value="Open"

                                  onclick="#{rich:component('MyPopupPanel')}.show();"

                                  style="width:100%" />

       

      I want do that within a function defined outside of the jsf page inside a .js file since depending on my criteria, the popup will be shown or not.

       

      I'm wondering how i can do that?

       

      Thanks