Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomahawk -- t:validateEmail custom message  RSS feed

Demian Seiler
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Morning,

I am looking for a way to override the default message provided by the Tomahawk validateEmail component. I know I can use message="WHAT EVER", but I want to set the summary to a different value than the detail. I was encouraged when the api doc shows attributes of summaryMessage and detailMessage, but when I tried to implement these were not found in the TLD. When I reviewed the TLD, sure enough these two attributes are not there. Chalk another one up to the always current Tomahawk doc.

With the other validators I have, I am using the f:attribute tags and a phase listener that uses the f:attribute as the detail and a value in my messagebundle for the summary.

For Example:

In my I have the following for required

The phase listener pulls all components that have messages if the detail matches REQUIRED_MESSAGE_ID then it uses the error message I defined in the f:attribute tag for the detail and the "*" I defined in the for the summary.

I would like to do the same thing for the Tomahawk emailValidator, but have been unsuccessful. Does anyone have any ideas on this one?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!