Hi Christian,
Assuming your LinkSubmit subcomponent extends the
org.apache.tapestry.form.LinkSubmit class, just override the
public void renderBody(IMarkupWriter writer, IRequestCycle cycle)
method and put in whatever code you like.
Cheers
Richard
Christian Haselbach wrote:
On Sun, Mar 04, 2007 at 03:29:04AM +0200, andyhot wrote:
You can't dynamically change the component structure
Well, I do not really want to change it dynamically, so this is not the
problem.
Now, i still can't understand your use case, so i can't offer any help there
(what's the meaning of "influence its body w/o using a template"), but
Let me refrase this:
When using a template I can give a subcomponent a body. How can I do it
w/o using a template? I have a LinkSubmit subcomponent, which I want to
have render its content with a certain body. While I can define this
body using a template, the template looks ugly (in this case, not in
general). It is better understandable when written programmatically.
perhaps you can build a custom component and pass parameters to it...
Sure, but that would be mostly a rewriting of LinkSubmit. I rather hoped
I could reuse LinkSubmit.
The use case is pretty simple: A specialized LinkSubmit component.
Regards,
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]