You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Scott Smith <sm...@gmail.com> on 2007/11/01 22:01:15 UTC

Tapestry 4.1 Component Render

How do I get a page to render a component that I have set up in the page
class?

I have done this successfully

OnePage.html
<span jwcid="@OneComponent"/>

but instead of just grabbing OneComponent from the pool I need to use the
one that I set up in the rendering of OnePage

OnePage.java
@Component
public abstract void getOneComponent();

I need to do some setup on this component before I let it render.  If there
is another way to do this then that would work too but right now I am doing
this before OnePage is rendered

getOneComponent().setSomeData(thisData);

Any help would be appreciated.

Thank You

-------------
Scott Smith

Re: Tapestry 4.1 Component Render

Posted by Scott Smith <sm...@gmail.com>.
I found the answer to my question.

<span jwcid="oneComponent">Component Goes Here</span>



On Nov 1, 2007 4:01 PM, Scott Smith <sm...@gmail.com> wrote:

> How do I get a page to render a component that I have set up in the page
> class?
>
> I have done this successfully
>
> OnePage.html
> <span jwcid="@OneComponent"/>
>
> but instead of just grabbing OneComponent from the pool I need to use the
> one that I set up in the rendering of OnePage
>
> OnePage.java
> @Component
> public abstract void getOneComponent();
>
> I need to do some setup on this component before I let it render.  If
> there is another way to do this then that would work too but right now I am
> doing this before OnePage is rendered
>
> getOneComponent().setSomeData(thisData);
>
> Any help would be appreciated.
>
> Thank You
>
> -------------
> Scott Smith
>
>


-- 
-------------
Scott Smith

It is not talking but walking that will bring us to heaven.
Mathew Henry