cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: [CForms] on-action event
Date Mon, 27 Sep 2004 20:48:30 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message