is it possible to use a4j:include to include a modalPanel not until the dialog should "become visible" to the user?
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.
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.