Well, you could get tricky and apply the parameter interceptor twice...

Params
ModelDriven -> getModel() uses the params set above
Params -> sets params on the model built by getModel()...

It's not pretty, but....

Jason

> -----Original Message-----
> From: Mark Woon [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 01, 2004 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] [WW2] Weird behavior with 
> ParameterInterceptor
> 
> 
> Jason Carreira wrote:
> 
> > Well, not sure if it's your whole problem, but if you want the 
> > properties to be set on your model object,
> >
> 
> Yup.
> 
> > then you need to put the
> > modeldriven interceptor before the params interceptors...
> >
> > Does your getModel() method depend on anything being set up by 
> > execute() or the params being set?
> >
> 
> Yes it does.  It uses the params to get the Id of the object to serve.
> 
> 
> Are there any alternatives?  Or am I going to have to just check the 
> request myself?
> 
> 
> -Mark
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now! 
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438> &op=click
> 
> _______________________________________________
> 
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to