UIDataTable table = (UIDataTable) FacesContext.getCurrentInstance().getViewRoot()
.findComponent("FormName:TableName" );
resetSorting( table );
}
public void resetSorting( UIDataTable table ) {
if ( table != null ) {
List
for ( UIComponent column : uiComponentBase ) {
( (UIColumn) column ).setSortOrder( Ordering.UNSORTED );
}
}
}
No comments:
Post a Comment