my dog learned polymorphism*
The moose likes JSF and the fly likes Double Space in dropdown causing Validation error 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 "Double Space in dropdown causing Validation error" Watch "Double Space in dropdown causing Validation error" New topic
Author

Double Space in dropdown causing Validation error

Db Riekhof
Greenhorn

Joined: May 21, 2009
Posts: 10
We have a dropdown:



Sometimes the values in these dropdowns have consecutive spaces between words. Cleaning the data of these double spaces really isn't an option. When we select one of these double space values in the dropdown, we get a validation error:



I'm no JSF expert and I didn't write this code, so I'm having a little trouble understanding why this validation error is happening, or even finding the validator that fails. I think this is some kind of default JSF validation, because I've searched through our code and can't find anything that matches this validation error. Has anyone else experienced this and found a solution, or can anyone give me some advice on how to get started finding the problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Double Space in dropdown causing Validation error
 
Similar Threads
On Drop Down Error summary=(j_id52:txtascedNarow: Validation Error: Value is not valid)
problem to submit the form when populate the <h:selectOneMenu> using javascript
Validation error while trying to change a value in a request scope bean
JSF prevents custom validator from getting control
selectOneMenu and Entity beans (JSF & JPA)