Hi all,
i am using primefaces-3.0.M3-SNAPSHOT (directly from svn). When using sortOrder, ascending or descending, the small triangle sort image shows opposite as expected. For ascending it shows \/, for descending /\.
TIA
B.
datatable sortOrder - image
Hi,
excuse me for bumping but the problem still pesists.
my code is:
<p:dataTable id="tblGaming" var="instance" value="#{gamingHistoryAction.model}"
paginator="true" rows="10" dynamic="true"
lazy="true"
sortBy="#{cpndate}"
sortOrder="descending"
>
To fix it, the following lines in DataTableRenderer must be reversed:
if(sortOrder.equals("ASCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_ASCENDING_ICON_CLASS;
else if(sortOrder.equals("DESCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_DESCENDING_ICON_CLASS;
if(sortOrder.equals("ASCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_DESCENDING_ICON_CLASS;
else if(sortOrder.equals("DESCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_ASCENDING_ICON_CLASS;
Regards,
Vassilis
Primefaces 3.0.M3, Mojarra 2.0.6, liferay 6.0.5
excuse me for bumping but the problem still pesists.
my code is:
<p:dataTable id="tblGaming" var="instance" value="#{gamingHistoryAction.model}"
paginator="true" rows="10" dynamic="true"
lazy="true"
sortBy="#{cpndate}"
sortOrder="descending"
>
To fix it, the following lines in DataTableRenderer must be reversed:
if(sortOrder.equals("ASCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_ASCENDING_ICON_CLASS;
else if(sortOrder.equals("DESCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_DESCENDING_ICON_CLASS;
if(sortOrder.equals("ASCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_DESCENDING_ICON_CLASS;
else if(sortOrder.equals("DESCENDING"))
sortIcon = DataTable.SORTABLE_COLUMN_ASCENDING_ICON_CLASS;
Regards,
Vassilis
Primefaces 3.0.M3, Mojarra 2.0.6, liferay 6.0.5
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests