This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Input text required message attribute" Watch "Input text required message attribute" New topic
Author

Input text required message attribute

Augustine Chelliah
Greenhorn

Joined: Mar 12, 2009
Posts: 28
hello,
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,
Augustine
 
 
subject: Input text required message attribute