1 Reply Latest reply on Mar 27, 2008 9:15 AM by mail.micke

    Dynamic loading for modalPanel

    ahoehma

      Hi Folks,

      is it possible to use a4j:include to include a modalPanel not until the dialog should "become visible" to the user?

      My scenario:

      I have a toolbar with 3 buttons ... each button should show a modal-dialog. The content of the dialog (or the whole dialog?!) should be loaded from the server at the moment when the user click on such a button.

      Currently i include these dialogs via ui:include (facelets) and use a rich:componentControl to bind a button on a dialog. But this requires a lot of rerender-definitions in my application (sync-problems etc.) ... at the end this code is not maintainable.

      Any ideas?

      Regards höhmi

        • 1. Re: Dynamic loading for modalPanel
          mail.micke

          Hi

          If your source for the a4j:include (or ui:include) is an el expression you could probably reRender it via a button/link which updates the source el expression.

          Not sure if this is what you wante though.

          good luck,
          Micke