You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ovidiu <ov...@qualdesign.ro> on 2004/02/19 09:46:51 UTC
Question
Hi,
I've got a question for Tapestry veterans...It is possible that
inside the renderComponent method of some object, to create new
instances of components?...I mean ,let's say , I have the html/jwc/java
files of some component somewhere on the disk, let's assume that on the
classpath, can i dynamically instantiate this component and render it
whenever i want in some other component's renderComponent method?
Thanx,
Ovidiu
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Question
Posted by Marilen Corciovei <le...@nemesisit.rdsnet.ro>.
yes, I used something like that and worked:
protected void renderComponent(IMarkupWriter iMarkupWriter,
IRequestCycle cycle) {
IPage page = cycle.getPage("Profile");
page.getComponent("body").renderBody(iMarkupWriter, cycle);
.....
}
len
On Thu, 2004-02-19 at 10:46, Ovidiu wrote:
> Hi,
> I've got a question for Tapestry veterans...It is possible that
> inside the renderComponent method of some object, to create new
> instances of components?...I mean ,let's say , I have the html/jwc/java
> files of some component somewhere on the disk, let's assume that on the
> classpath, can i dynamically instantiate this component and render it
> whenever i want in some other component's renderComponent method?
>
> Thanx,
> Ovidiu
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>