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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]