2 Replies Latest reply on Sep 2, 2008 8:36 AM by shrine

    Rich Faces Modal Panel

    shrine

      hi

      in my application i am using rich faces modal panel. I want to popup modal panel only when i click a link. But when i popup modal panel, i want the panel to be opened when i do some search actions for which form submits.

      i have used both the attribute
      showWhenRendered="false" keepVisualState="true"
      but only one functionality works at a time.

      when keepVisualState="false" , popup opens only when i click the link, but popup disappear on form submit for some actions in panel.

      when keepVisualState="true", popup is shown when i load the form initally, which is not required.

      please help,

      thanks,

      bye.


        • 1. Re: Rich Faces Modal Panel
          rare

          i advice you using binding to your modal panel
          and for example make a boutton and in the action of your boutton make a code like that
          this.mybindingmodalpanel.setrendered(true);
          this.mybindingmodalpanel.setkeepvisualstate(true);
          and suppose if you have a boutton in your modal panel to hide it here is the action for that boutton

          this.mybindingmodalpanel.setrendered(false);
          this.mybindingmodalpanel.setkeepvisualstate(false);

          • 2. Re: Rich Faces Modal Panel
            shrine

            hi,

            Thanks for the reply. I implemented binding for modal panel. It worked fine.


            thanks,

            bye