cancel
Showing results for 
Search instead for 
Did you mean: 

action configuration, javascript and value binding

markus_kuehn
Champ in-the-making
Champ in-the-making
Hi,

the following action configuration

         <action id="testAction">            <label-id>testAction</label-id>          <tooltip-id>testAction_tooltip</tooltip-id>            <image>/images/icons/reset.gif</image>          <onclick>javascript:testActionFunction('#{actionContext.id}');</onclick>         </action>‍‍‍‍‍‍‍

results in this link

<a href='#' onclick="document.forms['browse']['browse:act'].value='browse:testActionid_196';document.forms['browse'].submit();return false;">testAction</a>‍‍‍

whereas I believe it should read like this

<a href='#' onclick="javascript:testActionFunction('theIdOfTheNode');">testAction</a>‍‍‍
.

Can someone confirm?
1 REPLY 1

markus_kuehn
Champ in-the-making
Champ in-the-making