Hi, the scenario is that i have a collection of Attendance objects- for
example, Attendance(Student s, String class, String attended) - to be
displayed on a page. and i would like a checkbox (or other components
whichever appropriate) for each row. so if the student attended the class,
user can tick the box. user then ticks those boxes if the student attended
the class, then finally click a button "save", and program will figure out
which Attendance objects are changed and commit database transactions.

so something like this:

-----------------------------------------------------------------------
Student                   class                     attended
-----------------------------------------------------------------------
Bob                         math                       ticked
Henry                      physics                    ticked
Anne                       english                    ticked
Nick                         history                     unticked

[Save Button]
----------------------------------------------------------------------

each row above represents an Attendance object. the problem is, because the
number of rows are variant, so i m using a For component to produce these
rows automatcally. but how can i know which checkboxex are ticked, and which
checkbox is for which row? as these boxex are produced at runtime and
assigned different names at runtime isnt it? unlike the DirectLink component
which can pass parameters such as the object's id, how does a checkbox (or
if other appropriate components) identify the row?

i could use directlink instead and open up another window where user tick
the box in a separate page for each Attendance row, but that would be bad
design...

any suggestions pleaes, thanks very much!
-- 
View this message in context: 
http://www.nabble.com/hi%2C-is-it-possible-to-do-this-with-tapestry...-tf2126696.html#a5867937
Sent from the Tapestry - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to