Olá Pessoal estou tendo problemas com o selectItems.
O erro é o seguinte:
java.lang.IllegalArgumentException: Collection referenced by UISelectItems with binding ‘#{gerenciaEstado.estados}’ and Component-Path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /paginas/cadastroEstado.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp1][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp2][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _idJsp7][Class: javax.faces.component.UISelectItems,Id: _idJsp8]} does not contain Objects of type SelectItem
…
public void setEstados(List estados) {
this.estados = estados;
}
[]s
Leandro
J
Jedi-Son
Mesmo implementando o método set continua aparecendo o mesmo erro.
Leandro_BSB
Na distribuição da Sun do JSF funcionou:
<%@tagliburi="http://java.sun.com/jsf/html"prefix="h"%><%@tagliburi="http://java.sun.com/jsf/core"prefix="f"%><html><head><title>CadastrodeEstado</title></head><body><f:view><h1><h:outputTextvalue="Cadastro de Estado"/></h1><h:form><h:panelGridcolumns="2"><h:selectOneMenu><f:selectItemsvalue="#{gerenciaEstado.estados}"/></h:selectOneMenu></h:panelGrid></h:form></f:view></body>