File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Problem with selectOneMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with selectOneMenu" Watch "Problem with selectOneMenu" New topic
Author

Problem with selectOneMenu

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I have two selectOneMenu . One is populated based on the selected value of the first, that is the first has onselect="submit()" that is once you select a value the form reloads and the second selectOneMenu loads up vaules from the database, Problem is it works until i set "required=true" on other form objects on the same page. seems the page does'nt submit until other fields have been filled. Is there a solution to this problem
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

You need to make sure that the end of the Java code that runs on submit goes to the render phase. I forgot the exact method and parameter to do that, but a simple Google search should show it pretty quickly, or a search on this forum.

Good Luck

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Originally posted by Mark Spritzler:
You need to make sure that the end of the Java code that runs on submit goes to the render phase. I forgot the exact method and parameter to do that, but a simple Google search should show it pretty quickly, or a search on this forum.

Good Luck

Mark


Do you mean by setting immediate=true, if thats what you mean i have already tried that but its not working
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with selectOneMenu