[Seaside] generating dynamic id:#name for component inside a table
Carlos Crosetti
carlos.crosetti at mostar.com.ar
Sat Nov 20 15:28:48 UTC 2010
Hi, I am with the same table code in the aim of implementing a multiple selection list within a form, so the User may select several, or one of the checkboxes and apply some function to the selection.
what I got is when selecting all and hitting submit, the form renders all the selected items, but when checking on one or a few, the form renders none.
Regards, Carlos
----- Original Message -----
From: Gilles Schtickzelle
To: Seaside - general discussion
Sent: Saturday, November 20, 2010 9:15 AM
Subject: [Seaside] generating dynamic id:#name for component inside a table
Hello,
I have a table built like this
html table: [
collection1 do: [ :x |
html tableRow: [ collection2 do: [:y |
html tableData: [ html checkBox
id: #checkBoxName
.....] ] ] ] ]
What I'd like is to have a different #checkBoxName for each so I can set one depending of the function of the other with a ((html jQuery: #checkBoxNameXY) attributeAt: 'checked' put: (html jQuery this attributeAt: 'disabled')) or something like it.
How should I proceed to achieve this?
Thanks
Gilles
------------------------------------------------------------------------------
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101120/8d16266a/attachment.htm
More information about the seaside
mailing list