Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SelectOneMenu problem

 
Rehana Shaik
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having some isues myself... could you please post your code? Maybe we can help eachother out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic