In the renderComponent method you only output html - not tapesty
template code.
Even if you try it (be running the code you showed us), you'll see that
the template
you're outputting is NOT processed by tapestry.

You can try defining a listener parameter for your component and
creating an html template that uses it.

binu pankajakshan wrote:

>Hi all.
>  
>  Am trying to display some links which are generated in the  
> renderComponent(IMarkupWriter , IRequestCycle) method of a component. I  want 
> to know if I want a listener to be associated with it in where  should i 
> write the code for it
>  
>  say for eg. the below is a sample component defined
>  public class ListLink extends AbstractComponent 
>  {
>      public void renderComponent( IMarkupWriter writer, IRequestCycle cycle )
>      {
>          writer.printRaw("hi");
>          writer.printRaw("<a href='#'  jwcid='@DirectLink'      
> listener='ognl:listeners.linkClicked'>click here ....</a>");
>      }
>  }
>  
>  The component is being displayed as part of another page .
>  Can any  one help me out where do i write the linkClicked () method.
>  
>  In general if we write such block to dynamically generate the component body 
> where do we write the listener methods.
>  
>  I Am new to tapestry so please tell me if i am doing it the right way and if 
> not how can i do it.
>  
>  Thanks & Regards
>  Binu
>  
>
>               
>---------------------------------
>Yahoo! for Good - Make a difference this year. 
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to