Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

[T5] Delegate Rendering

Marcel Sammut

2008-11-12


Author LoginPost Reply

Greetings,
Is it possible to use the Delegate component such that the delegation of the
rendering be given to a method in the page, or to a rendering class instead
of a Block or Component? In the example below, can the onDelegatemethod be
used to render the contents (ie. return a stream or use the MarkupWriter) of
the delegate?

The old T3 Delegate component was used this way, but I'm not sure how to do
the same in T5. I have my own IRender interface (similar to T3) that is
returned to the delegate component. For Example:

MyPage.tml
<t:delegate to:"onDelegate" ></t:delegate>

MyPage.java
public void onDelegate(MarkupWriter writer) {
writer.element("table");
...
}

Any thoughts or suggestions?
Thanks,
Marcel
--
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.