Problem in JSF tag <h:selectOneMenu>
i am getting an error
javax.servlet.ServletException: Value binding '#{DealerDetails.repIndicator}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/dealer_Details.jsp][Class: javax.faces.component.html.HtmlForm,Id: Dealer][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _idJsp21][Class: javax.faces.component.UISelectItems,Id: _idJsp22]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
root cause
javax.faces.FacesException: Value binding '#{DealerDetails.repIndicator}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/dealer_Details.jsp][Class: javax.faces.component.html.HtmlForm,Id: Dealer][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _idJsp21][Class: javax.faces.component.UISelectItems,Id: _idJsp22]} 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)
My code in the bean is ...
SelectItem[] repIndicator;
public SelectItem[] getRepIndicator() {
return repIndicator;
}
public void setRepIndicator(SelectItem[] repIndicator) {
this.repIndicator = repIndicator;
}
My JSP page code
<h:selectOneMenu value="#DealerDetails.dealerRecycledRepIndicator}" >
<f:selectItems value="#DealerDetails.repIndicator}"/>
</h:selectOneMenu>
nw the value in the variable repIndicator is not null... but when i press submit button... then the error above comes i dnt understand why.. the data type of repIndicator is selectType

