A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to display custom validation message for a drop down.
Joined: Apr 05, 2007
Feb 12, 2010 02:09:02
I have a dropdown in my application.
I would like to do
validation for this dropdown.
If I give required="true", it is giving its own validation error message.
Instead I would like to display a custom error message like 'Please select the state.'
Please let me know how I can display a custom validation message.
Sumeet Singh Aryan
Joined: Jul 30, 2008
Feb 12, 2010 02:42:18
It's very easy to implement. either right your own custom validator class or write the validator method in your bean and call it as a validator attribute in JSF tags. for more clarification follow the following link
The woods are lovely, dark and deep, But I have promises to keep; And miles to go before I sleep, And miles to go before I sleep. - Robert Frost
Joined: Feb 04, 2010
Feb 13, 2010 19:00:12
See the section
How to use standard conversion and validation features in JSF in
It is clearly explained in it.
Don't get me started about those stupid
subject: How to display custom validation message for a drop down.
client side validation (message deleted I think)
How to resolve this issue
validation error message
Resolve this please
Validation in JSF
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013