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 Calendar Converter and Validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Calendar Converter and Validator" Watch "Calendar Converter and Validator" New topic
Author

Calendar Converter and Validator

Klaus Schuster
Ranch Hand

Joined: Feb 10, 2009
Posts: 30
Hi!

I try to use an GregorianCalendar as Input Field.
Therefore I have written an validator for Input format (dd.MM.YYYY), and an Converter to get from the validated String the Calendar.
In my jsf page:


The Problem: The Converter is called before the Validator, so this makes no sense.
Is it possible to process the validator and after that the Converter?
I tried another way without an validator, so the validator part in the converter before converting.
If there is an validation Error, I throw an ValidatorException message.
The Problem is, that I can't use the message tag for writing the error to the output JSF file. It is ignored, and I get a page sized error.

Any suggestions?
Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calendar Converter and Validator
 
Similar Threads
Using Commons converter with JSF
empty input validation
Issue when using shale commons validator with JSF
Re-Render Problem after ValidationException
rich:ajaxValidator problem