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 h:selectOneMenu  - empty string value becomes null Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "h:selectOneMenu  - empty string value becomes null" Watch "h:selectOneMenu  - empty string value becomes null" New topic
Author

h:selectOneMenu - empty string value becomes null

Yaron Rel
Greenhorn

Joined: Aug 04, 2009
Posts: 20
Hi,
My Question:
Why does the default empty string value of myBackingBean.yearStr becomes null after the page is loaded?
My Environment:
I am using RichFaces 3.3 with JBOSS 6, and Seam 2.1.2

Thanks in advanced
Yaron



comboBoxUtil:


The declaration of yearStr in the backing bean:
Anurag Bhatia
Greenhorn

Joined: May 12, 2009
Posts: 27
Hi Yaron,

I have run into the same situation. Did you happen to find any solution to your problem?

--Anurag
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: h:selectOneMenu - empty string value becomes null
 
Similar Threads
selectManyCheckbox in dataTable returns only the last selected item rather the whole list.
comboBox sends 0 when left empty
Problem With selectonelistbox
combobox options
How to prepopulate combo boxes on page startup