You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Torsten Krah <tk...@fachschaft.imn.htwk-leipzig.de> on 2006/11/01 10:17:33 UTC
clay and tomahawk table, rowIndexVar and rowId ignored
Using tomahawk dataTable with jsp Viewhandler:
<t:dataTable ... rowIndexVar="rowIndex" rowId="row_#{rowIndex}" ... />
works like expected, the rows get the id row_0, row_1 etc. pp.
Using clay it does not work. The rows got no id, i declared my table
like this:
<component jsfid="myUserTable" extends="t:dataTable"
allowBody="false">
<attributes>
<set name="value" value="#{@managed-bean-name.users}" />
<set name="var" value="user" />
<set name="sortable" value="false" />
<set name="preserveSort" value="true" />
<set name="preserveDataModel" value="true" />
<set name="id" value="data" />
<set name="headerClass" value="tabHead" />
<set name="footerClass" value="standardTable_Footer" />
<set name="rowClasses" value="tabdkl" />
<set name="rowIndexVar" value="rowIndex" />
<set name="rowId" value="row_#{rowIndex}" />
</attributes>
<element renderId="0" jsfid="loginColumn" />
<element renderId="1" jsfid="lastNameColumn" />
<element renderId="2" jsfid="firstNameColumn" />
<element renderId="3" jsfid="editColumn" />
</component>
Looking at clays html output, no id is at the rows - hints, anything i
have missed or should try?
Ignore the sorting things - i still looking for ways using the sorting
facilities provided through tomahawks table and SortableModel, although
they don't work for me yet.
Torsten