So you just need to know when the item you're rendering is the last in
the list? Well, you have access to the list (getList()) and the item
(item.getModelObject()), so it should be pretty straight forward, if
not elegant, to find out if the item is the last in the list.
On 11/1/05, Eelco
In that case, better would be to compare the current index of ListItem
(li.getIndex) with the ListView's size (lv.getViewSize()). That way
you won't have to touch the 'internal' model, and it'll work with
sizes that differ from the underlying model.
Eelco
On 11/2/05, Phil Kulak [EMAIL
Oh yea, that's much better.
On 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote:
In that case, better would be to compare the current index of ListItem
(li.getIndex) with the ListView's size (lv.getViewSize()). That way
you won't have to touch the 'internal' model, and it'll work with
sizes
Thanks for all your help! I have a basic example working now, and I am
trying to fix the last separator as per your suggestions. I put a link
object (actually a BookmarkablePageLink) in a list for every page to be
in the menu and use those in the populateItem(), like this:
<> public
<>Hi all,
I'm a new user to Wicket. I love what I have seen so far. The
HelloWorld example was very convincing for me to give Wicket a try!
I am trying to create a menu to go above my pages. I have been
browsing through the Wiki and looked at the navigation example. The
navigation example