Hi Piero 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... > It is an abstract class - but that shouldn't matter? 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.
@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. regards, Peter ----- Original Message ----- From: "Piero Sartini" <[email protected]> To: "Tapestry users" <[email protected]> Sent: Friday, 19 June, 2009 14:27:59 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: RenderSupport in pages? Am Freitag, 19. Juni 2009 13:12:02 schrieb DH: > I am sure that exception comes out in ajax request, right? RenderSupport is > not available in ajax request. Nope.. as soon as I try to access the RenderSupport in pageAttached or pageLoaded. It is an abstract class - but that shouldn't matter? The Page has some AJAX event handlers as well.. maybe that's the problem? I now ended up creating a helper component called RenderMyStyle which is included in the template. That works... but is not very elegant imho. Piero --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
