3 Replies Latest reply on Jun 23, 2009 2:26 PM by phoenixvn

    Data loading in ModalPanel

      Hi all,

      I have been working with RichFaces for only 1 months and here is my problem with the data loading in ModalPanel: I have 1 JSF page for filtering and searching data. In this page, one criterion is chosen from a ModalPanel (which in turn, is also a filtering page). Then, I found that:

      - everytime the parent page is loaded, the data on the ModalPanel is also loaded although it is not visible

      - everytime the ModalPanel is openned and submitted, not only its data but also the parent's is loaded simultaneously

      As the data on both pages are read from database, it is a good idea to load only the needed data. But I couldn't find out how to do it in this scenario.

      If anyone can point me a way out of this problem, I would appreciate very much.

      Thanks in advance for your help,

        • 1. Re: Data loading in ModalPanel

          Is there anyone with experience on this problem?

          Thanks,

          • 2. Re: Data loading in ModalPanel
            nbelaevski

             

            "phoenixvn" wrote:
            - everytime the parent page is loaded, the data on the ModalPanel is also loaded although it is not visible

            True, modal panel is solely a client-side component. Use AJAX command component to reRender it with actual data and then show by oncomplete.

            "phoenixvn" wrote:
            - everytime the ModalPanel is openned and submitted, not only its data but also the parent's is loaded simultaneously

            Modal panel is not a separate window or IFRAME, that's why the whole page is reloaded. Use AJAX command components.

            • 3. Re: Data loading in ModalPanel

              Hi,

              Thanks for your answers! BTW, can you give me an example for this?

              Regards,

              "nbelaevski" wrote:
              "phoenixvn" wrote:
              - everytime the parent page is loaded, the data on the ModalPanel is also loaded although it is not visible

              True, modal panel is solely a client-side component. Use AJAX command component to reRender it with actual data and then show by oncomplete.

              "phoenixvn" wrote:
              - everytime the ModalPanel is openned and submitted, not only its data but also the parent's is loaded simultaneously

              Modal panel is not a separate window or IFRAME, that's why the whole page is reloaded. Use AJAX command components.