I'm studying PrimeFaces with CDI for some video lessons I've been watching but something strange is happening.
I have a bean gestaoEmpresas
There are two methods, a void consultar()
and a List<Empresas> todasEmpresas()
But in my XHTML does not see my method void
only the method with return of a List
but if you change the tag and put in a <h:commandButtum
for example it sees. For example:
// does not see query method
<f:metadata>
<f:viewAction action="#{gestaoEmpresasBean.}" />
</f:metadata>
// does not see query method
<p:commandButton action="#{gestaoEmpresasBean.}"/>
// see method check
<h:commandButton action="#{gestaoEmpresasBean.consultar}"/>
I do not understand why he can not see when I use Faces or PrimeFaces