If you have a form in the block that is being rendered then I've used the
PREPARE_FOR_RENDER event from the form to inject scripts.
Subcomponents get their render methods called during a partial render, I'm
not sure why the targeted component's render methods are not called.
On Tue, Sep 2, 2008
It would be tricky for some technical reasons.
You can return a new Renderable object that will act as a callback
from inside the partial rendering pipeline; inside the render()
method, the environment (including RenderSupport) will be properly
setup:
i.e.
Object onActionFromFoo()
{
return new
Thanks Howard. Is the availability of RenderSupport within component
event handlers a candidate for a new feature? Without such support I'm
not sure how an app can return JS code to be executed to the client as
the result of an action (ie a fired component event).
chris
Howard Lewis Ship wrote:
>
It may not work from an event handler method, as its wired into place
for the partial page render.
On Tue, Sep 2, 2008 at 7:41 AM, Chris Lewis <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I was under the impression that the use of RenderSupport to add
> javascript to an AJAX response was supported, and
Hello,
I was under the impression that the use of RenderSupport to add
javascript to an AJAX response was supported, and that scripts added in
such a context via addScript would be executed automatically via
tapestry.js when the response is received. Isn't that how it should work?
I'm using a for