On Submit the following error is thrown.
----------------------------------------
javax.faces.FacesException: Value binding '${roles}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/user/userRegistrationForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id: registrationForm][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: select_roles][Class: javax.faces.component.UISelectItems,Id: _id11]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
de.mindmatters.faces.lifecycle.ProcessValidationsPhase.executePhase(ProcessValidationsPhase.java:48)
de.mindmatters.faces.lifecycle.AbstractPhase.execute(AbstractPhase.java:37)
de.mindmatters.faces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:166)
de.mindmatters.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:211)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Does anyone know where the problem might be?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Having problems submitting when using drop down list.
List populates fine, ${roles} is a collection of SelectItem(s) put into scopw by Spring Sweb Flow.
<h:selectOneMenu id="select_roles" value="#{flowScope.userAddCommand.roleId}">
<f:selectItems value="${roles}" />
</h:selectOneMenu>
#{flowScope.userAddCommand.roleId} = java.lang.String.
On Submit the following error is thrown.
----------------------------------------
javax.faces.FacesException: Value binding '${roles}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/user/userRegistrationForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id: registrationForm][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: select_roles][Class: javax.faces.component.UISelectItems,Id: _id11]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
de.mindmatters.faces.lifecycle.ProcessValidationsPhase.executePhase(ProcessValidationsPhase.java:48)
de.mindmatters.faces.lifecycle.AbstractPhase.execute(AbstractPhase.java:37)
de.mindmatters.faces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:166)
de.mindmatters.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:211)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Does anyone know where the problem might be?