permaculture playing cards*
The moose likes JSF and the fly likes Input text required message attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Input text required message attribute" Watch "Input text required message attribute" New topic

Input text required message attribute

Augustine Chelliah

Joined: Mar 12, 2009
Posts: 28
The requiredMessage attribute for the inputText tag is available only in JSF 1.2. I have a constraint of using only JSF 1.1. I need to have custom error messages for the Required=true option. Adding custom message in the resource bundle makes the same message to be displayed for all text boxes; but I need different error messages for different text boxes. Is there a solution to the problem ? Like creating a new class to add the attribute requiredMessage by extending the HTMLInputText class or something like that ?

Thanks & Regards,
I agree. Here's the link:
subject: Input text required message attribute
Similar Threads
Displaying component id for error message
requiredMessage duplicating returned EL string
View model ignores custom validation for Double values
JSF validation messages ... how to customize ?
Weird JSF "h:messages" tag behavior