Cwele wrote:
> 
> What I want, it to set the current row automatically when selecting the +
> image (for detailStamp) _and to close previously opened detail stamp when
> a new detailStamp opens. So, how to select an tr:table row with the detail
> stamp link ?
> In that way, user does not need to select particular row first, in order
> to see all his detail records, contained in the detailStamp
> 

I guess, you have got rowSelection="single", because you wrote that you
would like set the row selected, where + was choosen. Did you try adding
selectedRowKeys- and rowDisclosureListener-attributes to your table? The
RowKeySet of selectedRowKeys-attribute has to have the same CollectionModel
as the value-attribute of the table was set to. You must create your
CollectionModel extending org.apache.myfaces.trinidad.model.CollectionModel
with overwritten getRowKey()- and setRowKey(Object)-methods. Then you will
be able to handle the RowDisclosureEvent and call
"UIXTable.getDisclosedRowKeys().clear();
UIXTable.getSelectedRowKeys().clear();
UIXTable.getSelectedRowKeys().add(RowDisclosureEvent.getAddedSet().iterator().next());"
there.
-- 
View this message in context: 
http://www.nabble.com/tr%3Atable-%3A-how-to-expand-just-one-detailStamp---tp23632524p23675653.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to