Hi,

I'm trying to generate a editable table using the trh:tableLayout component
with tr:iterator in it.
I put trh:rowLayout in the tr:iterator to render rows, and have a "remove"
button for each row.

The result of the rendered view is perfect. 
However, when I try to remove the row, it always removes the last row. 
It only happens when I set the remove action to "immediate".

I've found related postings:
http://www.nabble.com/-jira--Created:-(TRINIDAD-112)-Remove-a-row-in-tr:iterator-td11689939.html
http://www.nabble.com/-jira--Created:-(TRINIDAD-112)-Remove-a-row-in-tr:iterator-td11689939.html
 
https://issues.apache.org/jira/browse/TRINIDAD-112
https://issues.apache.org/jira/browse/TRINIDAD-112 

They said that what I should do is to provide a CollectionModel
implementation that provides consistent row keys across adds and deletes. 
Can anyone tell me how to implement such CollectionModel?
and how to use it to work with the tr:iterator?

many thanks,
-- 
View this message in context: 
http://www.nabble.com/-Trinidad--Romove-a-row-from-tr%3Aiterator-tp23141002p23141002.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to