algaworks JSF Primefaces not echerga void methods

Asked

Viewed 162 times

1

I’m studying Primefaces with CDI of some video classes I’ve been watching but something is happening that at least strange .

I have a bean gestaoEmpresas

There are two methods, one void consultar() and a List<Empresas> todasEmpresas()

But in my XHTML you don’t see my method void only the return method of a List but if you change the tag and put in a <h:commandButtum for example he sees. For example :

//does not see the method consult

<f:metadata>
<f:viewAction action="#{gestaoEmpresasBean.}" />
</f:metadata>

//does not see the method consult

<p:commandButton action="#{gestaoEmpresasBean.}"/>

//see the method consult

<h:commandButton action="#{gestaoEmpresasBean.consultar}"/>

I don’t understand why he can’t see when I wear the faces or the Primefaces

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.