You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by linuja <li...@gmail.com> on 2005/11/21 07:04:48 UTC

Why pageBeginRender() is called twice?

when a page that implment PageBeginRenderListener Interface, and in the
pageBeginRender() method:

public void pageBeginRender(PageEvent event) {
System.out.println("here");
}

and the "here" will print twice. why?

RE: Why pageBeginRender() is called twice?

Posted by Patrick Casey <pa...@adelphia.net>.
	Once for the rewind, the second time for the render.

	

	If (event.getRequestCycle().isRewinding())
		System.out.println("rewinding");
	Else
		System.out.println("rendering");

	--- Pat

> -----Original Message-----
> From: linuja [mailto:linuja@gmail.com]
> Sent: Sunday, November 20, 2005 10:05 PM
> To: Tapestry users
> Subject: Why pageBeginRender() is called twice?
> 
> when a page that implment PageBeginRenderListener Interface, and in the
> pageBeginRender() method:
> 
> public void pageBeginRender(PageEvent event) {
> System.out.println("here");
> }
> 
> and the "here" will print twice. why?



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org