Porque está ocorrendo esse erro na minha pagina xhtml?

2 respostas
programaçãojsfjava
L

Value binding '#{ClienteMB.tipoPessoa}'of UISelectItems with component-path {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /paginas/administrativo/manter_cliente.xhtml][Class: org.ajax4jsf.component.html.AjaxForm,Id: formPrincipal][Class: javax.faces.component.html.HtmlPanelGroup,Id: painelClienteEdit][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: tipoMedida][Class: javax.faces.component.UISelectItems,Id: j_id127]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : [Lbr.com.escola.enumeration.TipoPessoa;

2 Respostas

W

pode colocar o código da página? aparentemente ta tendo algum problema no seu formPrincipal

L
<div class="mdl-list__item">
   <div class="mdl-list__item--primary-content">
      <i class="material-icons mdl-list__item-icon" style="margin-right: 18px"></i>
      <div class="PFPJ mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="width: 190px; margin: -20px 0">
         <h:outputLabel value="Tipo pessoa: " for="input_site" styleClass="mdl-typography--subhead"/>
         <h:selectOneMenu value="#{ClienteMB.cliente.tipo}" id="tipoMedida" hideNoSelectionOption="false" onchange="mudaCampo()">
            <f:selectItem itemLabel="Selecione..." itemValue="" noSelectionOption="true" />
            <f:selectItems value="#{ClienteMB.tipoPessoa}" var="pessoa" itemValue="#{pessoa}" itemLabel="#{pessoa}"/>
         </h:selectOneMenu>
      </div>
   </div>
</div>
Criado 2 de janeiro de 2018
Ultima resposta 2 de jan. de 2018
Respostas 2
Participantes 2