I posted the improvement request XW-105
http://jira.opensymphony.com/secure/ViewIssue.jspa?key=XW-105, that asked
for converters are retrieved by inheritance.
I resolved it and attached a patch to the jira issue.
Previously, you had to write in your xwork-conversion.properties :
java.util.Date=com.uniclick.xwork.converters.DateConverter
java.sql.Date=com.uniclick.xwork.converters.DateConverter
java.sql.Time=com.uniclick.xwork.converters.DateConverter
java.sql.Timestamp=com.uniclick.xwork.converters.DateConverter
With my patch, a single line is enough :
java.util.Date=com.uniclick.xwork.converters.DateConverter
I'av also added the ability to retrieve any interface converters. You just
have to declare one converter for an interface, and all of its implemented
classes will be converted with the declared converter.
com.uniclick.myproject.EntityInterface =
com.uniclick.xwork.converters.EntityConverter
And if a special implemented class need its own converter, just declare it
in the xwork-conversion.properties, it will override the interface
converter.
com.uniclick.myproject.EntityInterface =
com.uniclick.xwork.converters.EntityConverter
com.uniclick.myproject.SpecialEntity =
com.uniclick.xwork.converters.SpecialEntityConverter
Could this improvement be included in the next beta ?
Richard HALLIER
Chef de projet
[EMAIL PROTECTED]
01.40.12.41.52
www.uniclick.org
UNICLICK
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork