Skip dynamically an item in populateItem of ListView

2013-04-30 Thread Marco Di Sabatino Di Diodoro
Hi all,

Which is the best way to skip dynamically an item in populateItem of ListView. 
Currently I use setEnable and setVisible, but I like to know if there was a 
better approach. 

Regards
Marco


--

Dott. Marco Di Sabatino Di Diodoro
mdisabatinodidiod...@gmail.com





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



Re: Skip dynamically an item in populateItem of ListView

2013-04-30 Thread Maxim Solodovnik
Maybe you can filter List prior to populate items from it?



On Tue, Apr 30, 2013 at 8:01 PM, Marco Di Sabatino Di Diodoro 
mdisabatinodidiod...@gmail.com wrote:

 Hi all,

 Which is the best way to skip dynamically an item in populateItem of
 ListView.
 Currently I use setEnable and setVisible, but I like to know if there was
 a better approach.

 Regards
 Marco


 --

 Dott. Marco Di Sabatino Di Diodoro
 mdisabatinodidiod...@gmail.com





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




-- 
WBR
Maxim aka solomax


Re: Skip dynamically an item in populateItem of ListView

2013-04-30 Thread Marco Di Sabatino Di Diodoro

On Apr 30, 2013, at 3:19 PM, Maxim Solodovnik wrote:

 Maybe you can filter List prior to populate items from it?

No, I can not filter the List before.

M
 
 
 
 On Tue, Apr 30, 2013 at 8:01 PM, Marco Di Sabatino Di Diodoro 
 mdisabatinodidiod...@gmail.com wrote:
 
 Hi all,
 
 Which is the best way to skip dynamically an item in populateItem of
 ListView.
 Currently I use setEnable and setVisible, but I like to know if there was
 a better approach.
 
 Regards
 Marco
 
 
 --
 
 Dott. Marco Di Sabatino Di Diodoro
 mdisabatinodidiod...@gmail.com
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 WBR
 Maxim aka solomax

--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 085973
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino







Re: Skip dynamically an item in populateItem of ListView

2013-04-30 Thread Nick Pratt
Surely the list is provided to the ListView (either via a List or
IModelList).  So just wrap that List or IModel in another IModel
(LoadableDetachableModel) and then filter the List contents inside the
getObject() call.

N


On Tue, Apr 30, 2013 at 9:21 AM, Marco Di Sabatino Di Diodoro 
marco.disabat...@tirasa.net wrote:


 On Apr 30, 2013, at 3:19 PM, Maxim Solodovnik wrote:

  Maybe you can filter List prior to populate items from it?

 No, I can not filter the List before.

 M
 
 
 
  On Tue, Apr 30, 2013 at 8:01 PM, Marco Di Sabatino Di Diodoro 
  mdisabatinodidiod...@gmail.com wrote:
 
  Hi all,
 
  Which is the best way to skip dynamically an item in populateItem of
  ListView.
  Currently I use setEnable and setVisible, but I like to know if there
 was
  a better approach.
 
  Regards
  Marco
 
 
  --
 
  Dott. Marco Di Sabatino Di Diodoro
  mdisabatinodidiod...@gmail.com
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
  --
  WBR
  Maxim aka solomax

 --

 Dott. Marco Di Sabatino Di Diodoro
 Tel. +39 3939065570

 Tirasa S.r.l.
 Viale D'Annunzio 267 - 65127 Pescara
 Tel +39 0859116307 / FAX +39 085973
 http://www.tirasa.net

 Apache Syncope PMC Member
 http://people.apache.org/~mdisabatino