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="[EMAIL PROTECTED]" />
                        <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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to