You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Sergey Didenko <se...@gmail.com> on 2009/06/25 17:26:34 UTC

parent rendering phases: must be called explicitly

Is it ok that parent render phases must be called explicitly from my
components?

I.e. I must create


DerivedComponent.java:

	protected void beginRender() {
		super.beginRender();
	}

otherwise BaseComponent beginRender() is not called.

This behaviour seems to contradict
http://tapestry.apache.org/tapestry5.1/guide/rendering.html, "Parents
before Child"


Regards, Sergey.

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


Re: parent rendering phases: must be called explicitly

Posted by Sergey Didenko <se...@gmail.com>.
Sorry, that was the other bug. It works as it is documented.

On Thu, Jun 25, 2009 at 6:34 PM, Thiago H. de Paula
Figueiredo<th...@gmail.com> wrote:
> On Thu, Jun 25, 2009 at 12:26 PM, Sergey
> Didenko<se...@gmail.com> wrote:
>> This behaviour seems to contradict
>> http://tapestry.apache.org/tapestry5.1/guide/rendering.html, "Parents
>> before Child"
>
> It doesn't:

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


Re: parent rendering phases: must be called explicitly

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, Jun 25, 2009 at 12:26 PM, Sergey
Didenko<se...@gmail.com> wrote:
> This behaviour seems to contradict
> http://tapestry.apache.org/tapestry5.1/guide/rendering.html, "Parents
> before Child"

It doesn't:

"When a sub-class overrides an render phase method of a base class,
the method is only invoked once, along with any other base class
methods. The subclass can change the implementation of the base class
method via an override, but can't change the timing of when that
method is invoked."

-- 
Thiago

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