> -----Original Message----- > From: James Cook [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 2:31 PM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] FW: from a ww user's view > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On > Behalf Of > > Patrick Lightbody > > > Yes, I'm working on getting this feature in place. > Currently it works > > -only- if getAccount() doesn't return null. My goal is to have Ognl > > realize this and create a new Account object. > > > Wouldn't it be more appropriate to have a static factory > method on the class to do this?
How could Xwork know to use it? With Constructors, at least the purpose of the method is clear when you're doing runtime reflection. Jason ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork