Re: [T4] Adding body of a sub-component w/o using a template

2007-03-05 Thread Richard Kirby
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

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-05 Thread Jesse Kuhnert
Yes. What Richard says. This is how the Shell component renders javascript includes for instance... On 3/5/07, Richard Kirby [EMAIL PROTECTED] wrote: Hi Christian, Assuming your LinkSubmit subcomponent extends the org.apache.tapestry.form.LinkSubmit class, just override the public void

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-04 Thread Christian Haselbach
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

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-03 Thread andyhot
You can't dynamically change the component structure See http://tapestry.apache.org/tapestry5/ the part discussing Principal 1 -- Static Structure, Dynamic Behavior 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

[T4] Adding body of a sub-component w/o using a template

2007-03-01 Thread Christian Haselbach
Hello, is it possible to add a body to a sub-component w/o using a template? I tried to inject the sub-component (which is specified in the jwc) into the class and than use addBody(). However, doing this during render adds a new body during each render. Doing it during finishLoad is not possible,

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-01 Thread andyhot
Can you give an example of what you're trying to accomplish ? Christian Haselbach wrote: Hello, is it possible to add a body to a sub-component w/o using a template? I tried to inject the sub-component (which is specified in the jwc) into the class and than use addBody(). However, doing this

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-01 Thread Christian Haselbach
On Thu, Mar 01, 2007 at 08:56:58PM +0200, andyhot wrote: Can you give an example of what you're trying to accomplish ? In this case I want to render customized LinkSubmit. For that I have LinkSubmit as subcomponent, but want to influence its body w/o using a template. With the addBody function I