Hi all,
Im facing a problem with a tr:table that uses rowSelection="single". Depending 
on the displayed data, one Row should be selected as default. The 
selectedRowKeys-attribute takes an EL-expression that points to a RowKeySet. 
Since there aint no way to simply add a row-index to the keyset, Im unsure how 
to tell the table wich row to select as default.

My table is defined like this:
<tr:table value="#{myBean.billingAdresses}" var="address" rowSelection="single" 
binding="#{myBean.addressTable}" >

The billingAddresses method in the BackingBean returns a list of 
BillingAddress-Objects. One of these objects has a boolean attribute "selected" 
set to true. The row dsiplaying this object should be preselected.

I tried to find some help on the web but found only one solution that was 
highly dependent on Seam.

Thanks in advance,
Tom


Thomas Asel 
Diplom Informatiker (FH)
Selbständiger Softwareentwickler
im Auftrag der 24/7 IT-Services GmbH

== == == == == == == == == == == ==
www.thomas-asel.de
J2EE und Contentmanagement-Lösungen
L13,7 68161 Mannheim
Tel.: +49 (0) 621 / 386 448 3
Mobil: +49(0) 176 / 219 284 26
USt-IdNr.: DE248123620

Reply via email to