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


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>

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


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