I have a number of rows that I display using Foreach
inside an html table. At the end of each row is a
delete button (a Submit component). Unpon clicking the
button, I will delete the record from the database,
and redisplay the page. 

How can I tell which submit button has been clicked?
The value of the Foreach is a WebPayment object which
has a unique id that I can use to uniquely identify
the row (i.e., WebPayment.getId()).

I have tried setting the tag on the Submit component
to ognl:webPayment.id but I don’t see any way to
determine which tag is in play inside the Submit
listener method.

I have also tried a Hidden component as well as some
bizzare javascript but have gotten nowhere.

I am sure this is trivial if you know how to do it,
not so trivial if you don’t.  Any suggestions would be
appreciated.

I am using Tapestry 3.

Thanks,
Larry Sherrill
City and County of Denver




                
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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

Reply via email to