jsf: August 2006 Archives

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));

About this Archive

This page is a archive of entries in the jsf category from August 2006.

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

jsf: August 2006: Monthly Archives

Powered by Movable Type 4.0