Why not leave it to developers to initialize fields properly in the action constructor?
This just might be covering a bug if particular bean object should only be created using a factory. Also, what happens if there are no public constructors? I don't think the assumption that every model bean will have a public default constructor is a good one.
Aleks
Patrick Lightbody <[EMAIL PROTECTED]> wrote:
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.
-Pat
----- Original Message -----
From: "Jason Carreira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 7:29 AM
Subject: RE: [OS-webwork] FW: from a ww user's view
> > -----Original Message-----
> > From: Matt Ho [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 20, 2003 9:48 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [OS-webwork] FW: from a ww user's view
> >
> >
> > I definitely like parts of this idea. Assuming we use the
> > Account bean, what if we change the AccountManager to:
> >
> > public class AccountManager
> > {
> > private Account account ;
> > public void setAccount(Account account) {
> > ...
> > }
> >
> > public void entryPoint() {
> > ... perform business logic here
> > }
> > }
> >
> > And this for the UI tags:
> >
> >
> >
> >
> >
> >
> > M
> >
>
> This is doable now, I think. I'm not sure of the status of it for WW
> 1.x, but Patrick was talking about having it create the sub-bean for you
> then set its properties like you're talking about.
>
> 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
-------------------------------------------------------
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