Type conversion does not work like that... rather you should make a file called ClassX-conversion.properties which contains:
y = br.com...CategoryConverter That is, the Xyz-conversion.properties files don't use the Ognl expression (x.y.z) but rather just a property name on the left hand side (key). -Pat -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Silveira Sent: Thursday, November 06, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: [OS-webwork] OGNL type converter for x.y input names Hello! I have a simple converter that works fine if I have the getter/setter directly in my action class public class MyAction extends ActionSupport { public void setCategories(Set categories) { } } MyAction-conversion.properites has: categories=br.com.....CategoryConverter But, if I want it to directly populate these categories as another object reference... public class MyAction ... { public Article getArticle() { return this.article; } //... } MyAction-conversion.properites changes to article.categories=br.com.....CategoryConverter And my Article class has a setCategories(Set). But this way the converter is never called. any hints? thanks -- Paulo Silveira http://www.ime.usp.br/~peas/ ------------------------------------------------------- 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 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork