aspose file tools
The moose likes JSF and the fly likes implicit validation for rich:calender 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 "implicit validation for rich:calender" Watch "implicit validation for rich:calender" New topic
Author

implicit validation for rich:calender

S Soniya
Greenhorn

Joined: Jun 24, 2010
Posts: 4
Hi All,

I need help on rich:calender component.

My problem is:
When I enter an invalid date and submit the form, an error message defined in properties file is being displayed.
This is being done through implicit validation for rich:calender as i am not using any JS .

I need to display error messages for other missed mandatory fields too when I submit the form
But since this implicit validation for rich:calender is not hitting back bean, other expected messages are not being displayed

Could anybody help out soon how i can override this validation and change as per to suit my requirement?

Any kind of help will be appreciated!!

Thanks in advance!!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14487
    
    7

Whenever possible, don't do validation in action methods, like it sounds like you're doing. As you've seen, the action method won't be invoked if any of the "true" validators fail.

Obviously, some things can't be easily done in a custom JSF validator, but if you can do so, that's the way to go.


Customer surveys are for companies who didn't pay proper attention to begin with.
S Soniya
Greenhorn

Joined: Jun 24, 2010
Posts: 4
Thanks Tim for your reply!

But my requirement is, i should highlight the missed out fields which is based on few backend checks which i can not perform by JS.
Whereas in this case though the error message is being displayed the field is not being highlighted.

So i should make it to hit the backbean.
This validation is as i am taking the datatype of the respective variable as Date in backend. (Or am I missing something out here )
But in end user view all validation errors should be displayed.

Is there anyway of acheiving this without changing the datatype ofthe respective variable from Date to String?
I am really fed up with this issue

Thanks,
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56201
    
  13

"just tellme", please check your private messages for an important administrative matter. Thanks.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
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: implicit validation for rich:calender
 
Similar Threads
How to clear the AutoComplete in rich:calender Richfaces for Mozilla
link css style sheet
The requested list key 'trngList' could not be resolved as a collection/array/map/enumeration/iterat
Setting mutiple backing bean attributes from rich:calender component
Stopping the struts validation for a particular non-displayed fields