3 Replies Latest reply on Jul 13, 2007 6:33 AM by Ilya Shaikovsky

    conditionally popping up the modal window

    inv3r53 d Novice

      Hi
      i have a case where i need to conditionally popup the modal window
      how do i do this?
      also how to make it pop up programatically?

      help much appreciated

        • 1. Re: conditionally popping up the modal window
          Ilya Shaikovsky Master

          calling popup is just calling its JS api. So you need to perform your condition check before calling. Programmatically you may set some value for hidden inpuit and then check it on the client and call the JS

          • 2. Re: conditionally popping up the modal window
            inv3r53 d Novice

            ok. now to invoke the modal panel from command button oncomplete is used(so everytime oncomplete is called.).so in the modal panel
            am using the rendered attribute

            <rich:modalPanel id="showProperties" minHeight="500" minWidth="800"
             height="600" width="800" style="top:230" zindex="2000" rendered="#{test.showModal}">
            


            am rendering using the condtion in test bean.
            if rendered="false" it doesnt display modal panel but the page shows IE error, but incase rendered="true" it works fine.

            also doc gives very litttle info on how to programatically throw the modal window , any other reference link wud be helpful.
            regards
            ~daed

            • 3. Re: conditionally popping up the modal window
              Ilya Shaikovsky Master

              May be it throws an error because you tries to call the panel that was not created because it isn't rendered?

              2) info is small because till latest releases this functuionality wasn't available.