Tobago Master/Detail

| | Comments (0) | TrackBacks (0)

just a note to remember that in a Tobago sheet the value of state-attribute contains the object of the selected row.

<tc:sheet value="#{SupplierController.supplierList}" id="sheet" columns="1;1;1;1;1;1;1;1;2*" var="supplierobject" state="#{SupplierController.selectedSupplier}" showHeader="true" showPageRange="center" pagingLength="10″ sortActionListener="#{SupplierController.supplierSorter}">

In the Controller get it easily by

List selection = selectedSupplier.getSelectedRows(); Supplier selectedSupplier = supplierList.get(selection.get(0));


0 TrackBacks

Listed below are links to blogs that reference this entry: Tobago Master/Detail.

TrackBack URL for this entry:

Leave a comment

About this Entry

This page contains a single entry by Christian Albrecht published on August 24, 2006 9:06 AM.

JUG Düsseldorf was the previous entry in this blog.

JIBX is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.0