Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Action not being performed if h:selectOneList box present in the form  RSS feed

 
hemanth kp
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

My page has one <h:selectOneListbox> that i am populating values from DB.

and followed by the list box i have a simple command button tag

<h:commandButton id="submit" styleClass="pagecontrols" value="Submit" action="#{MyBean.myMethod}" />

However, when i click submit myMethod is not being called.
If i remove the list box tag then myMethod is being called!!

I tried including immediate="true" in the command button tag but it also didnt help.

Can any one tell me where i am wrong? Please help me ASAP.
Why is action not taking place if the list box tag is present?

Thanks,
Hemanth Kp
 
Srikanth Madasu
Ranch Hand
Posts: 50
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CAn you post the code for <h:selectOneListBox> too.. may be there is a prob in that code...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!