Norbert Sándor wrote:
>
> What you can do (for example) is to implement IDirect in your component
> (which extends AbstractComponent) and generate a link using the "direct"
> service which will trigger that component.
> I recommend you to look at the source code of DirectComponent.
>
Do you have any examples on how this works? I have realised that the way I
am trying to do it defenetly do not work.
writer.begin("a");
writer.attribute("jwcid", "@DirectLink");
writer.attribute("listener",
"ognl:listeners.onClickDirectLinkArticleListPage");
writer.attribute("parameters", menu.getMenuId().intValue());
writer.attribute("onmouseover", "hideAllButThis('pm_" + menu.getName()
+"Menu', none');");
writer.attribute("href", "");
writer.begin("span");
writer.print(menu.getName());
writer.end(); //end span
writer.end(); // end a
becouse I put in jwcid:s and ognl etc in already generated html.
So the question is how can I generate the link and add that to the writer?
Thanks
Jacob
--
View this message in context:
http://www.nabble.com/DirectLink-in-Abstract-Component-tf2419541.html#a6777695
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]