java – ui:include with rendered from JSF does not work actions

Question:

I have two ui:include inside a template, follow the example below:

/*Desse Jeito ele entra nos metodo corretamente!*/
<ui:include src="../home/dados.xhtml"></ui:include>

/* com rendered não entra no metodo */
<h:panelGroup rendered="#{param['lotes'] == true}">
    <ui:include src="../home/dados.xhtml"></ui:include>
</h:panelGroup>

why does this occur? how can i solve this mt thanks!

Answer:

I've already had a problem in this regard.

In my case, I just did it as follows:

<h:panelGroup rendered="#{param['lotes'] == 'true'}"> <ui:include src="../home/dados.xhtml"> </ui:include> /h:panelGroup>

Scroll to Top