cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Binkley, Peter" <PBink...@mail.library.ualberta.ca>
Subject updating css class in ajax form
Date Tue, 09 Oct 2007 17:54:59 GMT
I've got a form in which a repeater generates cells of a table. Within each cell there is a
select element. I want the css class of the <td> element to be set to the value of the
select whenever the select changes. I've done this in the template like this:
 
<ft:repeater id="rows">

<table>

<ft:repeater-rows>

<ft:repeater id="columns">

<tr>

<ft:repeater-rows>

<td class="${repeater.getWidget(repeaterLoop.index, 'foo').getValue()}">

<ft:widget id="foo">

<fi:styling submit-on-change="true"/>

</ft:widget>

</td>

</ft:repeater-rows>

</tr>

</ft:repeater>

</ft:repeater-rows>

</table>

</ft:repeater>

 

I had hoped that the submit-on-change styling would force the <td> to re-render with
the new style, but it doesn't; the ajax update is empty. Is there a way to force the <td>
to re-render?

 

Thanks for any help,

 

Peter


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


Mime
View raw message