Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom message when regex doesn't match...

Nick St-Peter
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I was wondering if there was a way to provide a customized error message when a regex doesn't match with IBM's flavor of JSF (on Websphere 6.1).

Something like "noMatchMessageDetail" with ADF Faces...

I know it would work with a validator (either a separate one or one in the bean) or by using a different message bundle but the validator is somewhat overkill for my needs and replacing the default message by using a different resource bundle produces a message that's too generic...

Thank you for your help!

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic