Hi,
What Thomas says is one way. Here is another:
The sorting is performed according to the OGNL expression provided in
'columns'. The appearance of the column is by default the toString() of
that expression, but this can be overridden by defining a Block named
'<column>ColumnValue>'.
In your case you could define you column as:
columns=".... category:popularity, ..."
and define its appearance as:
<span jwcid="[EMAIL PROTECTED]">
<span jwcid="@Insert" value="ognl:components.table.tableRow.category"/>
</span>
The result will be that the 'category' column will display the category,
but will be sorted by popularity.
-mb
phillip rhodes wrote:
I am using the contrib table to display a product
category. I would like to allow the users to sort a
listing of products by popularity
Phillip Rhodeshttp://www.jsso.org Open source Java Identity and Authorization
Serviceshttp://www.rhoderunner.com Open Source Java Ecommerce Suite
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]