myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <simon.kitch...@rhe.co.nz>
Subject Re: Problems with Sort function
Date Mon, 26 Mar 2007 20:08:41 GMT
Edney Imme wrote:
> Hello Simon
> 
> sortAscending = PagedDeliverySchedulesort.ascending  will return true.
> 
> and by          sortColumn i need do input a string. ?

Yes.

public void setAscending(boolean state) {this.ascending=state;}
public boolean getAscending() { return ascending;}

public void setSortColumn(String columnName) {
   this.sortColumn=columnName;
}

public String getSortColumn() {
   return columnName;
}

then the method that is referred to by the datatable "value" attribute 
needs to look at this.ascending and this.columnName and return its data 
in the appropriate order.

Regards,

Simon

Mime
View raw message