cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beatejung <beatej...@online.de>
Subject Re: Deleting multiple repeater rows
Date Wed, 09 Feb 2005 09:41:46 GMT
Am Montag, 10. Januar 2005 18:10 schrieb Claudius Spellmann:
hi,

> 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.
> 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>

you should try  	<fd:on-activate> instead i think ;-)

>    <!--         <fd:on-action>
>                 <javascript>
>                 <![CDATA[
>
>                     var widget =
> cocoon.session.getAttribute("admin_form_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
>                         }
>                     }
>                  ]]>
>                 </javascript>
>             </fd:on-action> -->
>         </fd:repeater-action>
>
> I've already tried to use the on-action event but nothing will happen then
>
> Any Ideas ????
>
> Thanks in advance
> Claudius


-- 
ώνών

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message