[ http://issues.apache.org/jira/browse/MYFACES-279?page=comments#action_12313171 ]
Kalle Korhonen commented on MYFACES-279: ---------------------------------------- I sort of agree with Bruno that the technical message might confuse users, but in many cases it might also make sense to display it. If we don't have it as a resource parameter, then there's no easy way to allow it to be shown. Shouldn't we rather think about it the other way around - if you consider it to be confusing for your users, you would customize the message not to show the actual pattern? Or (and this might be off-topic, but), is there some other, easy way to to show a completely application/field dependent message, like <h:message for ="inputField> <h:outputText>Only [EMAIL PROTECTED] values allowed</h:outputText> </h:message> Something like that would make sense to me. > RegExprValidator Error-Message should show the pattern for better > understanding > ------------------------------------------------------------------------------- > > Key: MYFACES-279 > URL: http://issues.apache.org/jira/browse/MYFACES-279 > Project: MyFaces > Type: Improvement > Reporter: Alex Mayer > Assignee: Matthias Weßendorf > Priority: Minor > Attachments: Messages.properties, Messages_de.properties, > Messages_en.properties, RegExprValidator.java > > To my mind it would be better, if the regExprValidator's ErrorMessage would > show a text like this: > The submitted value ({0}) doesn't fit the pattern "{1}". > Because this gives the user and the developer a more detailed information > than "the given value ({0}) is not valid". Here the user/ developer has no > information what might be the correct input. > However, I changed the code of RegExprValidator and the german, english and > standard message properties so that the pattern is shown in the error-message. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
