On Fri, Jun 19, 2009 at 11:42 AM, <[email protected]> wrote:
> In this case it seems that Tapestry doesn't like it when you use @PageLoaded 
> or @PageAttached, though I can't explain why this wouldn't work...

Not exactly. @PageLoaded and @PageAttached are triggered before
rendering, and RenderSupport is only available while rendering. A
better event for what you want would be @BeforeRender.

> No, not at all I have done this too. I don't know what to make of the docs, 
> they seem a bit conflicting: "The Environmental annotation only works inside
> components." well this is not true, I am using it in pages without problems.

A page *is* a component, so there's no conflict here. I guess the
documentation is trying to say that the Environmental annotation does
not work in services.

> @Environmental works per request, and so does @PageAttached and @PageLoaded, 
> so it is a bit of a puzzle... although these are not really the render
> phase methods with which RenderSupport is best suited for.

Request != render. A request can have rendering, but their not the same.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to