You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sh...@sms.at on 2005/09/29 11:33:48 UTC
Exception selectOneListbox
Hello!
Since I have included myFaces 1.1.0 I get an exception I don't understand! The component isn't myFaces depending but I can't find the reason for it.
java.lang.IllegalArgumentException: Value binding '#{TimeRangeBean.choiceList}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /timerange.jsp][Class: javax.faces.component.html.HtmlForm,Id: timeRangeForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: id_otherWidgets][Class: javax.faces.component.html.HtmlSelectOneListbox,Id: id_choiceList][Class: javax.faces.component.UISelectItems,Id: id_itemsTest]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
at javax.faces.component._SelectItemsIterator.hasNext(_SelectItemsIterator.java:131)
at javax.faces.component._SelectItemsUtil.matchValue(_SelectItemsUtil.java:46)
at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:52)
at javax.faces.component.UIInput.validate(UIInput.java:269)
at javax.faces.component.UIInput.processValidators(UIInput.java:144)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
at javax.faces.component.UIForm.processValidators(UIForm.java:68)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:142)
at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:208)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Does someone know what this means?
My source code:
<h:panelGrid id="id_otherWidgets" columns="#{TimeRangeBean.columns}" >
<h:outputText id="id_label" value="#{TimeRangeBean.label}" />
<c:if test="${TimeRangeBean.isManyIntervalBack}">
<h:inputText id="id_intervals" value="#{TimeRangeBean.intervals}" size="2"/>
</c:if>
<h:selectOneListbox id="id_choiceList" title="#{TimeRangeBean.label}"
value="#{TimeRangeBean.currentChoice}" size="1" onchange="submit()">
<f:selectItems id="id_choiceItems" value="#{TimeRangeBean.choiceList}" />
</h:selectOneListbox>
</h:panelGrid>
Thanks in advance!
regards,
Conny
--
Ein Service von http://www.sms.at
Re: Exception selectOneListbox
Posted by Mathias Brökelmann <mb...@googlemail.com>.
The valuebinding TimeRangeBean.choiceList (your method
getChoiseList()) must not return null. It should be an instance of
SelectItem, SelectItem[], Collection or Map.
2005/9/29, shed@sms.at <sh...@sms.at>:
> Hello!
>
> Since I have included myFaces 1.1.0 I get an exception I don't understand! The component isn't myFaces depending but I can't find the reason for it.
>
> java.lang.IllegalArgumentException: Value binding '#{TimeRangeBean.choiceList}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /timerange.jsp][Class: javax.faces.component.html.HtmlForm,Id: timeRangeForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: id_otherWidgets][Class: javax.faces.component.html.HtmlSelectOneListbox,Id: id_choiceList][Class: javax.faces.component.UISelectItems,Id: id_itemsTest]} does not reference an Object of type SelectItem, SelectItem[], Collection or Map but of type : null
> at javax.faces.component._SelectItemsIterator.hasNext(_SelectItemsIterator.java:131)
> at javax.faces.component._SelectItemsUtil.matchValue(_SelectItemsUtil.java:46)
> at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:52)
> at javax.faces.component.UIInput.validate(UIInput.java:269)
> at javax.faces.component.UIInput.processValidators(UIInput.java:144)
> at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
> at javax.faces.component.UIForm.processValidators(UIForm.java:68)
> at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
> at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:142)
> at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:208)
> at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> at java.lang.Thread.run(Unknown Source)
>
>
> Does someone know what this means?
> My source code:
> <h:panelGrid id="id_otherWidgets" columns="#{TimeRangeBean.columns}" >
> <h:outputText id="id_label" value="#{TimeRangeBean.label}" />
> <c:if test="${TimeRangeBean.isManyIntervalBack}">
> <h:inputText id="id_intervals" value="#{TimeRangeBean.intervals}" size="2"/>
> </c:if>
> <h:selectOneListbox id="id_choiceList" title="#{TimeRangeBean.label}"
> value="#{TimeRangeBean.currentChoice}" size="1" onchange="submit()">
> <f:selectItems id="id_choiceItems" value="#{TimeRangeBean.choiceList}" />
> </h:selectOneListbox>
> </h:panelGrid>
>
>
> Thanks in advance!
>
> regards,
> Conny
>
> --
> Ein Service von http://www.sms.at
>
>
--
Mathias