|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
filter "after" parameters?Hi
How do I obtain the parameters that was returned from the controller in an "after" filter?? for example, if I have a FooController: def list = { [Foo.list()] } how do I get this list in the "after" filter??? In the documentation there is a list of parameters: session, response etc. But I have not managed to get any data from them. Yes, Im a newbie... |
|
|
Re: filter "after" parameters?yourFilterName(controller:'foo', action:'list'){
after = { model -> }
On Mon, Oct 26, 2009 at 5:52 PM, alebo611 <abogardi@...> wrote:
|
|
|
Re: filter "after" parameters?Thanks a lot!!! This should be in the official doc..
|
|
|
Re: filter "after" parameters?> Thanks a lot!!! This should be in the official doc..
It is. See section 6.6. Peter --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: filter "after" parameters?Yes now I see It.
Another question. It seems like the filter sometimes is called several times for one controller closure. Is this normal? /Alexander
|
|
|
Re: filter "after" parameters?> Another question. It seems like the filter sometimes is called
> several times for one controller closure. Is this normal? I don't think so. Only if the controller action is called more than once. What behaviour are you seeing? Peter --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: filter "after" parameters?I think maybe it was due to recompliation, similar to
duplicated links. I dont have this problem anymore.
|
| Free embeddable forum powered by Nabble | Forum Help |