1 Reply Latest reply on Mar 27, 2008 9:15 AM by Mikael Andersson

    Dynamic loading for modalPanel

    Andreas Hoehmann Newbie

      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