The moose likes JSF and the fly likes SelectOneMenu problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "SelectOneMenu problem" Watch "SelectOneMenu problem" New topic

SelectOneMenu problem

Rehana Shaik
Ranch Hand

Joined: Jan 03, 2003
Posts: 33
Hi all,
I am having a dropdown menu which is getting values from a previous page result and displaying it properly in my second page. But when i submit my second page i am getting following error. I am adding results to a model bean in first page action and accessing same model bean in my second page.My bean scope is request scope.

E SRVE0026E: [Servlet Error]-[Faces Servlet]: java.util.NoSuchElementException
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:96)
at javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:122)
at javax.faces.component.UISelectOne.matchValue(UISelectOne.java:140)
at javax.faces.component.UISelectOne.validate(UISelectOne.java:113)
at javax.faces.component.UIInput.executeValidate(UIInput.java:796)
at javax.faces.component.UIInput.processValidators(UIInput.java:412)
at javax.faces.component.UIForm.processValidators(UIForm.java:165)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:940)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:940)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:377)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:80)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:201)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)

Thanks in advance
Daniel Prene
Ranch Hand

Joined: Jul 15, 2005
Posts: 241
I'm having some isues myself... could you please post your code? Maybe we can help eachother out
I agree. Here's the link: http://aspose.com/file-tools
subject: SelectOneMenu problem
Similar Threads
SelectItems + IllegalArgumentException + help
NoSuch Element Exception after running the Jmeter test!
h:selectOneMenu PROBLEM
I want solotion for following error
Move option between two selectManyListbox using javascript