AnsweredAssumed Answered

action configuration, javascript and value binding

Question asked by markus.kuehn on Aug 20, 2008
Latest reply on Aug 23, 2008 by markus.kuehn
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?

Outcomes