Re: [Wicket-user] ListView#accept() proposal

2006-07-22 Thread Thomas R. Corbin
On Monday, 17 July 2006 08:21 pm, Aaron Hiniker escreveu:
> Yes, a List implement that filters on the fly would avoid the copy, but

I am not sure if you are talking the Collections api list, but if you 
are 
then the Glazedlists stuff provides an implementation of the Collections api 
list which filters on the fly.  It's really wonderful stuff.   They do 
filters, transformations. sorting, unique - all on the fly so that if the 
underlying list changes, the derived lists all automatically update too.   
Very, very good stuff.

> probably incur greater performance hits than a single List copy (due to
> the "Linked List" nature of the filtering).  The current ListView
> implementation only works on lists.. rightfully so because you can
> extract the active window via get() calls and provide pagination.  On
> that note, I agree that for ListView, the accept() is not a good
> candidate.. but I also feel that there is a void in not having a
> component that *doesn't* paginate.. like a CollectionView.. that visits
> each element in the list with easy filtering capabilities (in fact 90%
> of the time I am using ListView I am not using pagination).   If I get
> ambitious enough to write it, I'll submit it for consideration into
> wicket-extensions
>
> Aaron
>
> On Mon, 2006-07-17 at 17:40 -0700, Igor Vaynberg wrote:
> > im sorry but why will there be a listcopy?that is certainly a way to
> > go but its not the only way. from the model return a List interfcace
> > that filters on the fly.
> >
> > -Igor
> >
> >
> >
> > On 7/17/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:
> >
> > Yeah, there's no problem implementing this in the model, other
> > than the fact that there will be a list copy.
> >
> >
> > Aaron
> >
> > On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:
> > > 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
> > >
> > >
> > >
> > >
> > >
> > > 

Re: [Wicket-user] ListView#accept() proposal

2006-07-18 Thread Igor Vaynberg
refreshingview is not pageable so you dont need to know the size upfront

-Igor
On 7/18/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
But then you need to pre filter the list. Because what would size() return??But going with something out of the repeater package would be better.But then still you need to filter up front because all those Repeaters do want to know the total size?
And filtering on demand doesn't work then.johanOn 7/18/06, 
Igor Vaynberg <[EMAIL PROTECTED]
> wrote:
im
sorry but why will there be a listcopy?that is certainly a way to go
but its not the only way. from the model return a List interfcace that
filters on the fly.
-IgorOn 7/17/06, 
Aaron Hiniker <[EMAIL PROTECTED]
> wrote:




  
  


Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.

Aaron


On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

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





-Take Surveys. Earn Cash. Influence the Future of ITJoin 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 ITJoin 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


--

Re: [Wicket-user] ListView#accept() proposal

2006-07-18 Thread Johan Compagner
But then you need to pre filter the list. Because what would size() return??But going with something out of the repeater package would be better.But then still you need to filter up front because all those Repeaters do want to know the total size?
And filtering on demand doesn't work then.johanOn 7/18/06, Igor Vaynberg <[EMAIL PROTECTED]
> wrote:im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.
-IgorOn 7/17/06, 
Aaron Hiniker <[EMAIL PROTECTED]> wrote:




  
  


Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.

Aaron


On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

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





-Take Surveys. Earn Cash. Influence the Future of ITJoin 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 ITJoin 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.nethttps://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 chanc

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
another key reason for list is that the index of the list is used as a primary key to identify the right item on callbacks.-IgorOn 7/17/06, Aaron Hiniker
 <[EMAIL PROTECTED]> wrote:


  
  


Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance hits than a single List copy (due to the "Linked List" nature of the filtering).  The current ListView implementation only works on lists.. rightfully so because you can extract the active window via get() calls and provide pagination.  On that note, I agree that for ListView, the accept() is not a good candidate.. but I also feel that there is a void in not having a component that *doesn't* paginate.. like a CollectionView.. that visits each element in the list with easy filtering capabilities (in fact 90% of the time I am using ListView I am not using pagination).   If I get ambitious enough to write it, I'll submit it for consideration into wicket-extensions


Aaron


On Mon, 2006-07-17 at 17:40 -0700, Igor Vaynberg wrote:

im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.

-Igor




On 7/17/06, Aaron Hiniker <
[EMAIL PROTECTED]> wrote:



Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.






Aaron







On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

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 ___

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
there is RefreshingView that works off an iterator which is incidentally very wasy to filter in real time. it lives in wicket-extensions. there has been talk of moving that and dataview into core, but nothing concrete.
-IgorOn 7/17/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:



  
  


Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance hits than a single List copy (due to the "Linked List" nature of the filtering).  The current ListView implementation only works on lists.. rightfully so because you can extract the active window via get() calls and provide pagination.  On that note, I agree that for ListView, the accept() is not a good candidate.. but I also feel that there is a void in not having a component that *doesn't* paginate.. like a CollectionView.. that visits each element in the list with easy filtering capabilities (in fact 90% of the time I am using ListView I am not using pagination).   If I get ambitious enough to write it, I'll submit it for consideration into wicket-extensions


Aaron


On Mon, 2006-07-17 at 17:40 -0700, Igor Vaynberg wrote:

im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.

-Igor




On 7/17/06, Aaron Hiniker <
[EMAIL PROTECTED]> wrote:



Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.






Aaron







On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

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

Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker




Yes, a List implement that filters on the fly would avoid the copy, but probably incur greater performance hits than a single List copy (due to the "Linked List" nature of the filtering).  The current ListView implementation only works on lists.. rightfully so because you can extract the active window via get() calls and provide pagination.  On that note, I agree that for ListView, the accept() is not a good candidate.. but I also feel that there is a void in not having a component that *doesn't* paginate.. like a CollectionView.. that visits each element in the list with easy filtering capabilities (in fact 90% of the time I am using ListView I am not using pagination).   If I get ambitious enough to write it, I'll submit it for consideration into wicket-extensions

Aaron


On Mon, 2006-07-17 at 17:40 -0700, Igor Vaynberg wrote:

im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.

-Igor




On 7/17/06, Aaron Hiniker <[EMAIL PROTECTED]> wrote:



Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.






Aaron







On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

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











Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
im sorry but why will there be a listcopy?that is certainly a way to go but its not the only way. from the model return a List interfcace that filters on the fly.-IgorOn 7/17/06, 
Aaron Hiniker <[EMAIL PROTECTED]> wrote:



  
  


Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.

Aaron


On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

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





-Take Surveys. Earn Cash. Influence the Future of ITJoin 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.nethttps://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


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Aaron Hiniker




Yeah, there's no problem implementing this in the model, other than the fact that there will be a list copy.

Aaron


On Mon, 2006-07-17 at 17:02 -0700, Igor Vaynberg wrote:

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




-
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


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Igor Vaynberg
the filtering should be performed in the model - it is the perfect place for it.-IgorOn 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 changeis trivial.JuergenOn 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 ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___Wicket-user mailing listWicket-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


Re: [Wicket-user] ListView#accept() proposal

2006-07-17 Thread Juergen Donnerstag
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