• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Calendar Converter and Validator

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic