the filtering should be performed in the model - it is the perfect place for it.

-Igor


On 7/17/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:
Just out of my head. Paging which is based on windows size and list
size would need to take these into consideration. Not sure this change
is trivial.

Juergen

On 7/18/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:
>
>  I frequently have the need to filter the elements in a ListView.. of
>  course I can filter elements before passing them to ListView by creating
>  a new List, but it seems a lot cleaner to have an accept() method, just
>  like in IFeedbackMessageFilter or whatever.
>
>  ie:
>
>
>  add( new ListView( "list", myList ) ) {
>      public void onPopulateItem( ListItem item ) { ... }
>      public boolean accept( ListItem item ) {
>          return ((MyEntity)item.getModel()).isActive();
>      }
>  }
>
>
>
>  Would this be trivial to add to the ListView component?
>
>  ie:
>
>
>  Aaron
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to