problem is, to add a body - well -
without hacking much - just get a hold of the DirectService (inject it
from infrastructure: from service:), create a ILink and add manually the
<a href="..." using the margkup-writer.
ציטוט Raul Cesar Teixeira:
Hi,
I am trying to make a component that iterates over a list of strings,
and for each string, creates a link that will execute a specific
listener. Using a template for the component I was able to do what I
wanted by using a Foreach component and inside, using an ActionLink
for each element in my list of strings (actionStrings). The code below
is what I have on the template. Now I would like to do the same thing,
but without a template, that is, using a .JAVA class and implementing
the RenderComponent method. How can I create the embeded ActionLink
component in my renderComponent method?
<span jwcid="@Foreach" source="ognl:actionStrings" value="ognl:menuAction" >
<a jwcid="@ActionLink"
listener="ognl:pageListeners.getListener(menuAction.listenerName)" >
</a>
</span>
Thanks,
Raul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]