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 rend
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
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
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
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
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 du
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,