-1

I'm trying to get the itemValue from a oneSelectMenu but this exception has returned. Could anyone help me?

<p:outputLabel for="tipo" value="Tipo "/>
                    <p:selectOneMenu id="tipo" value="#{pessoaBean.pessoa.tipo}">
                        <f:selectItem itemLabel="Cliente" itemValue="Cliente"/>
                        <f:selectItem itemLabel="Funcionário" itemValue="Funcionário"/>
                    </p:selectOneMenu>

1 Answers1

0

Maybe you have to implement a javax.faces.Converter and add attribute converter="..." to p:selectOneMenu

see for example How to inject @EJB, @PersistenceContext, @Inject, @Autowired, etc in @FacesConverter?

Jan W
  • 64
  • 3