You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2006/06/09 08:09:16 UTC
[jira] Updated: (WW-685) Generic error message - Type Conversion
Error Handling
[ http://issues.apache.org/struts/browse/WW-685?page=all ]
Don Brown updated WW-685:
-------------------------
type: Improvement (was: Bug)
This looks more like an improvement than a bug, so changing accordingly.
> Generic error message - Type Conversion Error Handling
> ------------------------------------------------------
>
> Key: WW-685
> URL: http://issues.apache.org/struts/browse/WW-685
> Project: Struts Action 2
> Type: Improvement
> Reporter: Ricardo Lecheta
> Assignee: Rainer Hermanns
> Fix For: 2.0
>
> To change the default message "invalid field value for field "xxx"",
> you can put this line in the Action.properties
> > invalid.fieldvalue.[propertyName]
> But will be useful if there is a way to do a generic custom message to any type? For example a custom message for Dates, double, boolean, etc:
> > invalid.fieldvalue.For_All_Dates=This is not a valid date.
> I don´t know how to implement it, but could be like this:
> > invalid.fieldvalue.java.lang.Integer=This is not a valid Number.
> > invalid.fieldvalue.java.util.Date=This is not a valid Date.
> -------------
> I tried the following examples, but them doesn´t work:
> invalid.fieldvalue.*=Invalid Date.
> and
> invalid.fieldvalue.[*]=Invalid Date.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira