| Author |
SelectOneMenu Validation
|
Mal Tec
Greenhorn
Joined: Oct 06, 2010
Posts: 2
|
|
hi
i need to validate the selectoneMenu in JSF. I'm using
using properties for error msg:
i get UIInput.REQUIRED's error: Please enter a value for this field on selecting option Select with value null.. I want to get special error for UISelect like...
or need to fire it thorugh Invalid
How it can be done? Or if any tother alternative available.
|
 |
suresh dasari
Ranch Hand
Joined: Oct 05, 2009
Posts: 120
|
|
Hi,
1) if you are allowed to use tomhawk library then correct your code as follows
if you want you can pull the summary message from property file and change as you like
2) write a custom validator and divert the flow to your custom validator and write the logic in java class.
3) you can write a listener and write the appropriate logic before validation phase.
|
Sun Certified Java Programmer with 93 percent
|
 |
 |
|
|
subject: SelectOneMenu Validation
|
|
|