DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16005>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16005

Struts does not involve Converters to render properties

           Summary: Struts does not involve Converters to render properties
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


My system require that date field must be displayed and edited using
dd/MM/yyyy format.
To accomplish this, i have registered two class that implements Converter
interface (one for java.sql.Date and one for String) in a Plugin.

The problem is that when the ActionForm fields are declared as the correct
type (java.sql.Date), instead of String, framework did not involve registered
Converters and display html:text as ISO formats (yyyy-MM-dd), probably
because toString() method was used.

I think that to render a property on a html:text (and in other presentation 
tags), must be used the
ConvertUtils.convert() to obtain the correct string to use on the value 
attribute.

Ps: Also format and formatKey attribute may be useful

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to