On Jun 10, 2005, at 3:45 PM, Edward Scanzano wrote:

Hi all,

I have a custom component with a complex .html file
and it accepts a parameter. I am not sure what I am
supposed to do in the renderComponent method. It is
empty right now and naturally nothing is getting
rendered. I noticed in the Tapestry In Action book
that Howard is rendering the output with the writer
object. I cannot do that since I have a template
already. What do I do?

What am I supposed to do in this method if I have a
template?

If you have a template and simply want to render it, then subclass from BaseComponent and do _not_ override renderComponent. If you need to do rendering yourself, subclass from AbstractComponent instead and implement the abstract method needed for rendering.

I've never seen a case where you needed to have both a template and do rendering in code manually.

    Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to