7 Replies Latest reply on Sep 21, 2007 6:39 AM by ilya_shaikovsky

    Modal Panal Component

    ruther_21

      Hi All,

      I have a requirement to create a jsf custom component which is very much similar to RichFaces Modal Panel component with some additional requirements. Here is the link I am providing
      http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf?c=modalPanel

      When I click on a link it should show the modal panel using the javascript.
      I am wondering how to do this, please some one help me how to do this.

      please help me how to invoke modal panal from a javascript. I am new to custom components.

      any help is appreciated.



        • 1. Re: Modal Panal Component
          ilya_shaikovsky

          As you can see from code snippet on demosite - our modal panel opens only from JS. So its your case from the beginning. Please explore our docs carefully.

          • 2. Re: Modal Panal Component
            ruther_21

            Hi ilya_shaikovsky,

            Thanks for your reply.
            You are right, the demo modal panal opens from JavaScript,
            but I want that component to be opened from a hyperlink.
            Could you please suggest me how to start this.I am using facelets.

            any help is highly appreciated.

            • 3. Re: Modal Panal Component

              What do you mean by "opens from the hyperlik"

              From my point of vew the demo modal panel opens from click on the hyperlink.

              Is this a hyperlink:
              < a href="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})">show this panel< / a >
              ?

              • 4. Re: Modal Panal Component
                ruther_21

                Hi,

                Thanks for reply,
                I am planning to create a new custom component which is similar to Richfaces Modal Panal.
                So when one clicks a link to update something it should open a modal panal window for updation.
                I am wondering how to start.Please kindly help me to solve this.

                thanks in advance.

                • 5. Re: Modal Panal Component

                  It's very difficult to understand your needs from that brief introduction. Please explain your usecase.

                  • 6. Re: Modal Panal Component
                    ruther_21

                    Thanks for reply,

                    The usecase is something like this

                    I have to create a Custom Component Popup Window which is used to represent a modal dialog in a cross-browser method to allow a user to
                    input futher data, provide confirmations, and issue warnings/errors to
                    the user.The popup window is a mixture JavaScript and a container with specific content.Which is very much similar to Richfaces Modal Panal.
                    Here is the link for reference.
                    http://livedemo.exadel.com/richfaces-demo/richfaces/modalPanel.jsf?c=modalPanel

                    any help is highly appreciated.

                    • 7. Re: Modal Panal Component
                      ilya_shaikovsky

                      Still not understand :/

                      In all my tests and cases - I just take MP component, put any content there (input futher data, provide confirmations, and issue warnings/errors) and call/hide it from JS with or without submit.

                      What you can't achive with the panel??