Completed and checked in for EE-1.8.2GA P03
Revision: 27665
Author: philip.breau
Date: 7:16:05 PM, Thursday, May 12, 2011
Message:
IPCK-273 - readOnly attribute for EditableTable and RichDataGrid
Modified : /icepack/trunk/icepack/composite-components/conf/tld/icecc.tld
Modified : /icepack/trunk/icepack/composite-components/resources/icecc.tld
Modified : /icepack/trunk/icepack/composite-components/web/datatable/_createNewRowMenuPanelGroup.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/_editableTableRowOps.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/_richDataColumnBody.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/_richDataColumnOutput.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/_richDataGridRowOps.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/_richDataRowOpsHeader.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/editableTable.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/richDataGrid.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/selectBooleanColumn.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/selectInputDateColumn.xhtml
Modified : /icepack/trunk/icepack/composite-components/web/datatable/selectOneMenuColumn.xhtml
Modified : /icepack/trunk/icepack/samples/composite-comps-showcase/src/com/icesoft/faces/facelets/example/editabletable/EditableTableExampleBean.java
Modified : /icepack/trunk/icepack/samples/composite-comps-showcase/src/com/icesoft/faces/facelets/example/richdatagrid/RichDataGridExampleBean.java
Modified : /icepack/trunk/icepack/samples/composite-comps-showcase/web/WEB-INF/includes/examples/composition-components/editableTableDemo.jspx
Modified : /icepack/trunk/icepack/samples/composite-comps-showcase/web/WEB-INF/includes/examples/composition-components/richDataGridDemo.jspx
I think a readOnly attribute is more appropriate and feasible for the editable tables. When readOnly is set the the table rows will not be editable, and will appear in their unedited state. In the RichDataGrid, when the readOnly attribute is set, the table will still allow other functions, such as sorting, filtering, as well as hiding or showing rows.