when you have code like: request.xxx(), the real code is like:
Request.current(xxx)
--------------------------------------------------
From: "Julien Richard-Foy" <juli...@gmail.com>
Sent: Tuesday, March 01, 2011 4:14 PM
To: <play-fr...@googlegroups.com>
Cc: "Cyrille37" <cyri...@gmail.com>
Subject: Re: [play-framework] Re: invoking other controller actions from
template (page composition)
> A kind of �view component� is probably missing in Play! but I�m not
> sure the #invoke tag of Japid is a clean workaround : in an action you
> can deal with the request, its parameters, the response, the flash
> scope, etc. How are these variables filled when an action is invoked
> directly by Japid?
>
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>
Those implicit objects in controllers are byte-code engineered to be bound to the current thread, by Play. i.e.,
when you have code like: request.xxx(), the real code is like: Request.current(xxx)
--------------------------------------------------
From: "Julien Richard-Foy" <juli...@gmail.com>
Sent: Tuesday, March 01, 2011 4:14 PM
To: <play-fr...@googlegroups.com>
Cc: "Cyrille37" <cyri...@gmail.com>
Subject: Re: [play-framework] Re: invoking other controller actions from template (page composition)
A kind of “view component” is probably missing in Play! but I’m not
sure the #invoke tag of Japid is a clean workaround : in an action you
can deal with the request, its parameters, the response, the flash
scope, etc. How are these variables filled when an action is invoked
directly by Japid?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
So when you write an action you should be aware of the context of its call?
I agree that composing views is an interesting feature but I
definitely think that calling several actions is a bad way to achieve
it.
public static void _myTag(
Map<?, ?> args,
Closure body,
PrintWriter out,
ExecutableTemplate template,
int fromLine)
You're really dealing with low level Groovy stuff with it.
--------------------------------------------------
From: "martin" <martin...@googlemail.com>
Sent: Tuesday, March 01, 2011 9:00 PM
To: "play-framework" <play-fr...@googlegroups.com>
Subject: [play-framework] Re: invoking other controller actions from
template (page composition)
> What about using Java Tags for this? I think it should work for
It is good idea to keep a clear separation between controller actions
that will get invoked by an HTTP call (with the clear contract that
only one action will be called during a request), and a Component
model that help to organize your presentation logic when you need to
write more complicated code.
We'll introduce a very similar concept in a next version of Play (not
the 1.2 since I want to release it this month).
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
miam miam ... I'll be patient ;-)
Cheers
Cyrille
Yes.
--
Guillaume Bort, http://guillaume.bort.fr
For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com
The Symfony component model is less than impressive. I'm sure you'll come up
with something better based on technical merits instead of preconceived
notions.
Bing
--------------------------------------------------
From: "Guillaume Bort" <guillau...@gmail.com>
Sent: Wednesday, March 02, 2011 1:35 AM
>>>>> A kind of �view component� is probably missing in Play! but I�m not
> We'll introduce a very similar concept in a next version of Play ...
Exists this feature in Play 1.2.x now ?
Dňa utorok, 1. marca 2011 18:35:23 UTC+1 Guillaume Bort napísal(-a):