cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudius Spellmann <>
Subject Deleting multiple repeater rows
Date Mon, 10 Jan 2005 17:10:24 GMT

I've got a problem when deleting multiple repeater rows. Cocoon only 
seems to be deleting one row at the time.
When I delete a couple of rows it first seems that cocoon is deleting 
the repeater rows correctly but when reloading the form only one item 
was deleted.

My binding file looks like this:
    <fb:repeater id="xxx" parent-path="." row-path="xxxx">
            <fb:value id="study_id" path="@studyId"/>
            <fb:value id="xxxxx" path="xxxxx"/>
            <fb:value id="xxxx" path="xxx"/>
            <fb:value id="xxxxxr" path="xxx"/>

And my template like this:

        <fd:repeater-action id="remove_xxx" action-command="delete-rows" 
repeater="xxx" select="xxxx">
            <fd:label>remove selected items</fd:label>
   <!--         <fd:on-action>
                    var widget = 
                    var trials = widget.trials;
                    for (var i = 0; i < trials.length; i++) {
                        if(trials[i].select == true) {
                            trials[i].id = null  ; // The application 
will only delete items with null id's
            </fd:on-action> -->

I've already tried to use the on-action event but nothing will happen then

Any Ideas ????

Thanks in advance

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message