You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ananya Goswami <an...@aztec.soft.net> on 2005/09/23 12:19:38 UTC
Defalut sorted column
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: ananyag@aztec.soft.net
mob: 09886886320
ph: 080-57561000
extn:3720
Re: Defalut sorted column
Posted by Mind Bridge <mi...@yahoo.com>.
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: ananyag@aztec.soft.net
>mob: 09886886320
>ph: 080-57561000
>extn:3720
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org