Sure, open a case, and I'll figure out the exact reasons why we did this later on when I get to the case. Thanks.
-Pat ----- Original Message ----- From: "John Patterson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 29, 2003 1:18 AM Subject: Re: [OS-webwork] Properties not set on action > Yes, that would make more sense to me. I have written an Interceptor, > StackParametersInterceptor, which uses the OGNLValueStack.findValue() method > to do just this. It is more simple than the current ParametersInterceptor. > I will upload it onto Jira if you think it may be handy. > > But maybe there was a reason for the way it was... It solved my problem > anyway. > > John. > > ----- Original Message ----- > From: "Jason Carreira" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 28, 2003 5:44 PM > Subject: RE: [OS-webwork] Properties not set on action > > > Both the action AND the model are pushed onto the ValueStack. I think > the problem is that for getting params, the value stack goes down the > stack to find the property if it's not in the topmost object on the > stack. For setting properties, it only tries the topmost object, unless > you specify that it should down the stack like this "[1].foo". Should we > make this so that it automatically looks down the stack if the property > doesn't exist on the topmost object when setting properties? > > Jason > > > -----Original Message----- > > From: Pat Lightbody [mailto:[EMAIL PROTECTED] > > Sent: Monday, July 28, 2003 11:28 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [OS-webwork] Properties not set on action > > > > > > John, > > Hmm... seems that the action or model should be pushed on the > > stack, and then properties could be set at that point. Open a > > bug about this and we'll look in to it (there may have been a > > good reason, but it's way too early for me to think about it). > > > > -Pat > > > > ----- Original Message ----- > > From: "John Patterson" <[EMAIL PROTECTED]> > > To: "Webwork" <[EMAIL PROTECTED]> > > Sent: Friday, July 25, 2003 3:26 PM > > Subject: [OS-webwork] Properties not set on action > > > > > > When using a model driven action the property setting > > interceptor does not use the value stack to set the > > properties like I expected it to. Instead it replaces the > > OGNL root with EITHER the action or the model. This is not > > how the rest of the application works and seems rather strange. > > > > I want to set some properties on my model and have the rest > > fall through to the action. Why make an exception to the > > value stack behaviour in this instance? Does anyone else > > find this unusual? > > > > John. > > > > > > ------------------------------------------------------- > > 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 > ------------------------------------------------------- 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