Reputation: 989
<h:form>
<p:panel>
<h:panelGrid columns="3">
<ui:include src="../Filtros/FiltroGenerico.xhtml" />
<p:column >
<p:commandButton value="Buscar" action="#{pantallaBB.buscar}" />
</p:column>
</h:panelGrid>
</p:panel>
In @Postconstruct
of #{pantallaBB}
I active and desactive some filter in my BB FiltroGenerico
but I can read this because first load @Postconstruct
of #{filtroGenerico}
and after load @Postconstruct
of #{pantallaBB}
. I resolve add this line <h:outputText value="#{pantallaBB.anyAtribute}" style="display : none;" />
before <ui:include>
but I don´t liked. Any idea?
Upvotes: 1
Views: 315
Reputation: 3162
Try to use.
<f:metadata>
<f:event type="preRenderView" listener="#{PantallaBB.doSomeThing}" />
</f:metadata>
See also: ViewParam vs @ManagedProperty(value = "#{param.id}")
Upvotes: 2
Reputation: 71
You can use @ManagedProperty(value = "#{PantallaBB}") PantallaBB pantallaBB;
to call the class in FiltroGenerico.java and in FiltroGenerico @Postconstruct method call pantallaBB's @Postconstruct like pantallaBB.init() if @Postconstruct method named init.
Upvotes: -1