1
<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?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Mathew Rock
  • 989
  • 2
  • 14
  • 32

2 Answers2

2

Try to use.

<f:metadata>
    <f:event type="preRenderView" listener="#{PantallaBB.doSomeThing}" />
</f:metadata>

See also: ViewParam vs @ManagedProperty(value = "#{param.id}")

Community
  • 1
  • 1
wittakarn
  • 3,124
  • 1
  • 18
  • 31
-1

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.

Arijit Paul
  • 71
  • 1
  • 2