I want to do master-detail view on one page. When I click on a single row in
a sheet the detail-parts should be updated. The detail parts are Textfields
(tc:in). I already figured out that i can get the selected row through the
state-attribute of the sheet. The problem is that it is never set. Shouldn't
sheet be ajax enabled so the state should get updated? Do i have to do a
submit? Maybe on a link in the selected row?

sample code:
Controller-Class:
 public void setSelectedRows_table1169133995962(SheetState arg0) {
        List<Integer> selection = arg0.getSelectedRows();
...
    }

View:

<tc:sheet columns="*;*" id="table1169133995962" value="#{  controller.items 
}" var="row" state="#{ controller.selectedRows_table1169133995962 }"
rows="25" showRowRange="left" showPageRange="right" showDirectLinks="center"
showHeader="true" selectable="single"> 
        <tc:column label="#{  labels.column1  }" sortable="true"> 
          <tc:out value="#{row.id }"/> 
        </tc:column>  
        <tc:column label="#{  labels.column2  }" sortable="true"> 
          <tc:out value="#{row.name }"/> 
        </tc:column> 
       </tc:sheet> 


-- 
View this message in context: 
http://www.nabble.com/-Tobago--when-is-state-attribute-of-sheet-updated--tf3052556.html#a8485648
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to