Hi everybody,

We’re using wicket at our new project.
I wonder how i can dynamically generate a page navigation with several
levels the best way.
The navigation should know where it is ;) i.e. 
if the user navigates to myserver/navpoint the “navpoint” Bookmarkable Link
should be 
highlighted.
Lets assume I have the following navigation:
"MainSectionA" has Childs "SubSectionAA" and "SubSectionAB"
"MainSectionB" has only one Child "SubSectionB"

MountingPoints are:

MainSectionA -> /mainA
SubSectionAA -> /mainA/subAA
SubSectionAB -> /mainA/subAB
MainSectionB -> /mainB
SubSectionB -> /subB

If the user clicks on /mainA i want the subnavigation to be replaced with
the childs of /mainA thus subAA and subAB and the default page of /mainA
should be opened.
If the user navigates to /mainA/subAB I want the links mainA and subAB be
highlighted and not clickable.
This way a can provide a breadcrumb navigation too.

I want to have all Navigation links to be BookmarkablePageLinks. But
BookmarkablePageLinks.onClick() Method is final and I can’t do sth like
this:
new BookmarkablePageLink(…){
        public void onClick() {
                MyNavPanel.this.currentLink = this;
}       
}

How can I determine globally on which Page the user currently is or to which
Page the current request was  targeted? Independent of the
mountingStrategy... It should work without mounting at all.
If I use PageLink instead of BookmarkablePageLink I can override the
onClick() Method, but the mountedURLs aren’t forced. 

Thank you very much for your advices. I hope you can follow my intend.

Our project aims to automatically generate WebUIs out of BusinessRules, just
for your information ;)

-- 
View this message in context: 
http://www.nabble.com/n-Level-Page-Navigation.-How-to-implement--tp17083157p17083157.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]

Reply via email to