I actually did implement this, Pat... It's in there. :-)

You don't think it's a good idea to use the ValueStack to set properties
from params?

Jason

> -----Original Message-----
> From: Pat Lightbody [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 11, 2003 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] ParametersInterceptor behaviour on 
> a ModelDriver action
> 
> 
> Marco,
> There have been a couple requests to implement 
> ValueStack.set() (we currently don't, look at 
> CompountRootAccessor to see for yourself). If you open a jira 
> issue, we'll try to get around to it shortly.
> 
> With regards to your example, if you need to set both the 
> model and the action, it sounds like ModelDriven isn't really 
> what you need.
> 
> -Pat
> 
> ----- Original Message -----
> From: "Marco Papini" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 08, 2003 3:48 AM
> Subject: [OS-webwork] ParametersInterceptor behaviour on a 
> ModelDriver action
> 
> 
> > Another thought on ModelDriven action.
> > Consider this use case:
> >
> > public class Model {
> >      String field = null;
> >      public String getField() { return this.field; }
> >      public void setField(String field) { this.field = field; } }
> >
> > public class ModelDrivenAction
> > extends ActionSupport
> > implements ModelDriven {
> >
> >      String actionField = null;
> >      public String getActionField() { return this.actionField; }
> >      public void setActionField(String actionField) { 
> this.actionField 
> > = actionField; }
> >
> >      Model model = new Model();
> >      public Object getModel() { return this.model; }
> >
> > }
> >
> > The actionField action property is never set, because the 
> > ParametersInterceptor just set the model properties if an 
> action is a 
> > ModelDriven. Is this the supposed behaviour ? I think that's much 
> > better to make the ParametersInterceptor work directly on the value 
> > stack, so it can set the model properties and, if a property isn't 
> > found, go down the stack looking for a suitable property in the 
> > action.
> >
> > Any comments ?
> >
> > Marco
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET 
> sites including 
> > Data Reports, E-commerce, Portals, and Forums are available now. 
> > Download today and enter to win an XBOX or Visual Studio .NET.
> >
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
> _072303_01/01
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites 
> including Data Reports, E-commerce, Portals, and Forums are 
> available now. Download today and enter to win an XBOX or 
> Visual Studio .NET. 
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet
_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to