I have a JSF page which works with a ViewScoped managed bean, that page requires an viewParam which is passed from URL.
I'm using Primefaces 4.0, and I want to know if there's a way to use that xhtml page inside a p:dialog and then pass some param to it.
From where I want to summon that dialog is a different page with a different bean, ViewScoped too.
My dialog actually looks like this:
<p:dialog widgetVar="w_dialogAgregarInfo">
<h:form id="dialogAgregarInfo">
<p:tabView id="tabView">
<c:forEach items="#{iniciarProcesoController.mfuncionesAsociadas}" var="mFuncion" varStatus="loop1">
<p:tab id="t_funcion_#{loop1.index}" title="#{mFuncion.nombre}" titleStyle="font-size:15px;font-style: normal;font-weight: normal">
<f:subview id="tab_#{loop1.index}">
<o:massAttribute target="javax.faces.component.UIInput" name="disabled" value="#{mFuncion.soloLectura}">
<p:panelGrid id="pg_funcion_#{loop1.index}" style="margin: 0 auto; box-shadow: none; width: 100%">
<ui:include src="#{mFuncion.paginaFuncion}"></ui:include>
</p:panelGrid>
</o:massAttribute>
</f:subview>
</p:tab>
</c:forEach>
</p:tabView>
</h:form>
</p:dialog>
And I'm calling this dialog as I usually do: just tell it to show.
<p:commandButton value="Agregar información" oncomplete="w_dialogAgregarInfo.show()"/>
But it show empty, pretty sure that I need to initialize the dialog's controller somehow, but I have no idea how to achieve that, any help would be apreciated, Thanks!!