JSF valueChangeListener问题,请教高手
前台代码:<t:selectOneMenuvalue="#{spInfonewBacking.spInfonewBean_new.operation_type_grade...
前台代码:
<t:selectOneMenu value="#{spInfonewBacking.spInfonewBean_new.operation_type_grade}" onchange="submit()" valueChangeListener="#{spInfonewBacking.changeListener}"> <f:selectItems value="#{spInfonewBacking.operGradeList}"/>
</t:selectOneMenu>
可是我的值一改变就报错:
2009-3-30 10:56:01 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet Faces Servlet threw exception
java.util.NoSuchElementException
严重: Servlet.service() for servlet Faces Servlet threw exception
java.util.NoSuchElementException
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:117)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:144)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:49)
at javax.faces.component.UISelectOne.matchValue(UISelectOne.java:164)
at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
at javax.faces.component.UIInput.validate(UIInput.java:867)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
at javax.faces.component.UIInput.processValidators(UIInput.java:666) 展开
<t:selectOneMenu value="#{spInfonewBacking.spInfonewBean_new.operation_type_grade}" onchange="submit()" valueChangeListener="#{spInfonewBacking.changeListener}"> <f:selectItems value="#{spInfonewBacking.operGradeList}"/>
</t:selectOneMenu>
可是我的值一改变就报错:
2009-3-30 10:56:01 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet Faces Servlet threw exception
java.util.NoSuchElementException
严重: Servlet.service() for servlet Faces Servlet threw exception
java.util.NoSuchElementException
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:117)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:144)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:49)
at javax.faces.component.UISelectOne.matchValue(UISelectOne.java:164)
at javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
at javax.faces.component.UIInput.validate(UIInput.java:867)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
at javax.faces.component.UIInput.processValidators(UIInput.java:666) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询