Guido Casper wrote:
Hi all,

is the on-action event supposed to work with either row-action or repeater-action?
Neither of the following works (meaning it works in general, but nothing is printed to the console):


<fd:row-action id="addaftersection" action-command="add-after">
  <fd:label>new section</fd:label>
  <fd:on-action>
    <javascript>
      java.lang.System.err.println("Was here!");
    </javascript>
  </fd:on-action>
</fd:row-action>

<fd:repeater-action id="addsection" action-command="add-row" repeater="sections">
<fd:label>new section</fd:label>
<fd:on-action>
<javascript>
java.lang.System.err.println("Was here!");
</javascript>
</fd:on-action>
</fd:repeater-action>


Am I missing something?
This is 2.1.5.1


There's a naming bug there, and the event is called "on-activate" and not "on-action"...

I just fixed this in SVN. I also made those handlers more useful for delete actions by calling the user-defined handlers before deleting the rows (for other handlers, they're called before)

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to