I haven't tried that (yet) but once I do the checks I need it to stop rendering that item. So the rest of the stuff tahts meant to be rendered never gets processed. Nevermind I will do the checks before the data even reaches the LoadableDetachableModel feeding it.

cheers.



On 15/01/2009, at 5:32 PM, Martin Makundi wrote:

Sounds like bad design that's going to give you headaches later...
nevertheless, did you try setting the listItem.setVisible(false)?

**
Martin

2009/1/15 Steve Swinsburg <s.swinsb...@lancaster.ac.uk>:
Hi all,

I have a situation whereby certain conditions mean I need to skip an item
that is being rendered in a ListView.
ie inside the populateItem() method I do some processing and if that item
fails, it shouldn't be rendered so I'd like to skip to the next item.

I know I *could* process the list before it reaches the ListView but I'd
prefer not to iterate over the list twice.

Is there some way of skipping this item or not showing the item (and making
sure none of its content is output)?


thanks,
Steve






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



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

Reply via email to