You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jan Kriesten <kr...@mail.footprint.de> on 2008/12/28 11:18:46 UTC

TextFilteredPropertyColumn[T] and getFilterModel

Hi,

I'm trying to work out how to handle TextFilteredPropertyColumn with wicket 1.4.

I'm trying to do the following:

tf = new TextFilteredPropertyColumn<M>( new Model( "Name" ), COL_NAME, "name" ){
  protected IModel<String> getFilterModel( FilterForm form ) {
    return new PropertyModel<String>(
getDataProvider.getFilterState.getFilterMap( FilterMaps.LIKE ), getSortProperty )
  }
}

COL_NAME (= sort property) / Filter value are organized in a simple
HashMap<String,String>.

This worked fine with Wicket 1.3.x - Wicket 1.4 insists that getFilterModel
returns an IModel<M> - which is obscure, since the filter doesn't have to match
the Model of the Column.

Am I missing something?

Best regards, --- Jan.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org