class abstract basepage extends page {
private list<basepage> history=new arraylist();
public basepage() {
add(new listview("history", new PropertyModel(this, "history")) {
protected void onpopulateitem(listitem item) {
link link=new link("link", item.getmodel()) {
protected void onclick() {
setresponsepage(getmodelobject()); }
}
link.add(new label("title", item.getmodelobject().gettitle()));
}
}
public basepage(basepage crumb) {
this();
history.add(crumb);
}
protected abstract imodel gettitle();
}
not the most efficient way, but should get you started
-igor
On Jan 13, 2008 4:47 AM, WickedMan <[EMAIL PROTECTED]> wrote:
>
> I gave it a try but I really cannot figure it out how to do it with pages
> instead of panels. Any help would be appreciated.
>
>
>
> Eelco Hillenius wrote:
> >
> >> Could you give me code examples how to do that?
> >
> > Not without having to spend a couple of hours on it, and I'm afraid I
> > don't have time for that now, sorry. Best rest assured, it is
> > doable... just fire up that grey matter of yours ;-)
> >
> > Eelco
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Adding-breadcrumbs-tp14753894p14785242.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]