Re: SetupRender - why is it called from PageResponseRendererImpl.renderPageResponse?

2009-07-24 Thread learningtapestry
Anyone? Please shed some light. learningtapestry wrote: > > I apologize for my ignorance, but I am kind of confused about how the > render phases work. > > Simple example: > > class Base{ >@SetupRender > protected boolean setupRender(MarkupWriter writer)

SetupRender - why is it called from PageResponseRendererImpl.renderPageResponse?

2009-07-23 Thread learningtapestry
I apologize for my ignorance, but I am kind of confused about how the render phases work. Simple example: class Base{ @SetupRender protected boolean setupRender(MarkupWriter writer) { //do something } } class Derived extends Base{ @BeginRender protected void beginRend

Log remote IP address with MDC class?

2009-07-15 Thread learningtapestry
Is there any way to log the remote IP address using the log4j MDC. If I contribute to RequestHandler inside my AppModule, I have a way of getting a hold of the org.apache.tapestry5.services.Request, but from this Request, there isn't no way of getting the IP address of the remote machine. I don't

Re: How to set a meta header tag in template?

2009-07-14 Thread learningtapestry
Markus, Thanks for your response. Could you please provide a small example of how you can pass a block as a parameter into the template? Let's assume the template is Site.tml and the page is NoCachePage.java/NoCachePage.tml. Let's also assume I have the String parameter called "httpMetaTags" defi

How to set a meta header tag in template?

2009-07-10 Thread learningtapestry
I am using tapestry version 5.1.0.3. I have a basic SiteLayout defined http://www.w3.org/1999/xhtml"; xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ...some css styles... ...some html goes here... Now as someone navigates my site, there is a particular pag