Hi,
According to your code the column ID is 'Date', rather than 'date'.
Thus, please try
<static-binding name="initialSortColumn" value="Date"/>
or if you use the T4 format of the JWC rather than the T3 one, please try
<binding name="initialSortColumn" value="literal:Date"/>
Ananya Goswami wrote:
Hi All !!!
I am using tapestry 4 in my application and using the
contrib.:TableView component to get a sortable table displayed in my page.
The problem is that I want Date column to be the default
sorted column when the page is displayed.
<component id="membersTableView" type="contrib:TableView">
<binding name="source" value="users"/>
<binding name="columns">Name :name, Type :
type,Date:date, </binding>
<binding name="pageSize" value="10"/>
<static-binding name="initialSortColumn"
value="date"/>
</component>
<component id="membersTableColumns" type="contrib:TableColumns" >
</component>
<component id="membersTablePages" type="contrib:TablePages">
</component>
<component id="membersTableRows" type="contrib:TableRows" >
</component>
<component id="membersTableValues" type="contrib:TableValues" >
</component>
Thanks & Regards
-----------------------------
Ananya Goswami
Software Developer
-----------------------------
mail: [EMAIL PROTECTED]
mob: 09886886320
ph: 080-57561000
extn:3720
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]