This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 97

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: 97

anyone?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: comboBox sends 0 when left empty
 
It's not a secret anymore!