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 comboBox sends 0 when left empty Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "comboBox sends 0 when left empty" Watch "comboBox sends 0 when left empty" New topic
Author

comboBox sends 0 when left empty

Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 79

Hi all

In my webapp when I leave rich:comboBox fields empty they send 0 when I submit the form. Any ideas why, and how could I avoid this behavior? Is the converter to blame? Here's the example code:

template:

I fill it dirrectly with its setter taking the results from a query which returns a list beginning from index '1':

converter:

the exception I get :

- JSF 1.2
- RichFaces 3.3.2
- JBoss 5.1
- EJB3

Thanks in advance


Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
willCodeForFood("Java,PHP,C#,XML,VBS,XHTML,CSS,JavaScript,SQL"); //always looking for job opportunities in AU/NZ/US/CA/Europe :P
Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 79

anyone?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: comboBox sends 0 when left empty
 
Similar Threads
How to generate managed bean
Help with h:selectOneMenu
h:selectOneMenu - setting the correct value
Preselection on Pick List?
JSF2 Populate SelectOneRadio with Enum values