• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

t:inputDate and custom validation

 
Steven Gollery
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if there is a way to override the error-checking that is done in Tomahawk's HtmlInputDate?

I've added a validator in the usual way:

<t:inputDate id="dateOfBirth" type="date" popupCalendar="true" value="#{bean.dateOfBirth}" binding="#{bean.dobInput}" validator="#{bean.dobValidator}"/>

The issue I'm running into is that if the user types in part of the date, but leaves a field blank or types in something non-numeric into the day or year fields, my validator is never called.

This is a problem for me because the design of the site requires gathering all the errors in a form that spans several tabs of a t:panelTabbedPane and presenting them to the user in a popup dialog. Also I don't want to present the generic error messages produced by the standard validators and t:inputDate to the user, so I need to add my own processing into the validation process.

Does anyone know if there's a way to hook into the t:inputDate validation process, or just to turn it off and handle validation myself?
 
chenhui Liu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic