aspose file tools
The moose likes JSF and the fly likes Action not being performed if h:selectOneList box present in the form Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Action not being performed if h:selectOneList box present in the form" Watch "Action not being performed if h:selectOneList box present in the form" New topic
Author

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

hemanth kp
Greenhorn

Joined: Apr 06, 2005
Posts: 9
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

Joined: Sep 10, 2008
Posts: 48

CAn you post the code for <h:selectOneListBox> too.. may be there is a prob in that code...


If it's easy.. then everybody would do it!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action not being performed if h:selectOneList box present in the form
 
Similar Threads
JSP + struts html:select
JSP + struts html:select
struts 2: how to call action from href link
Struts2 newB: some simple questions
Struts 1.1: Help needed with html:select, html:options, html:optionsCollection