I use the modalPanel component as follows:
<rich:modalPanel id="spSubscriberPanel" minHeight="400" minWidth="625" style="overflow: auto;"> <f:facet name="header">Subscriber Data</f:facet> <f:facet name="controls" /> <a4j:form> <a4j:include ajaxRendered="true" viewId="/pages/show/subscriberData.xhtml" /> </a4j:form> </rich:modalPanel>
No it's not possible currently. As a workaround you can use the fact that viewId can be defined by EL-expression. I.e. you can initially point viewId to simple basic page and then, when the modal panel is requested by user, re-render its contents using complete (subscriberData.xhtml) viewId and show panel.