I think the best is to get a hold of an ILink to the page you need, then use an Any and add the javascript using the URL given from the ILink.

To get a hold of the ILink you should inject the service you need,
(<inject object="engine-service:page" property="---"/>)
and call its getLink method, passing the page's name as a parameter.

hope that helps,
Cheers,
Ron



ציטוט radone:
Is it possible to add dynamicaly assigned javascript link? I need to redirect to DETAIL page via <td onclick="" >....

Something like this:

HTML:
<table border="1">
   <tr jwcid="customerList">
<td onclick="javascript:alert('linkToPage');"><span jwcid="customerId">001</span></td>
   </tr>
</table>

PAGE:
   <component id="customerList" type="For">
       <binding name="source" value="customerList"/>
       <binding name="value" value="currentCustomer"/>
       <binding name="element" value="literal:tr"/>
          <binding name="class" value="beans.evenOdd.next"/>
   </component>
   <component id="customerId" type="Insert">
       <binding name="value" value="currentCustomer.customerId"/>
   </component>

Thanks in advance

---------------------------------------------------------------------
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]

Reply via email to