Re: Navigation set active Page
have a look at http://wicket.apache.org/examplenavomatic.html that uses wicket:link that does that automatically. if you dont use the wicket:link tag, what about link.setEnabled(!getPageClass().equals(LandingPage.class)) ? regards, Michael HITECH79 wrote: > > Hallo, > > i want to solve this problem: > > I create a Navigation for my project with css. I cant set the active Page > in the Navigation. Body-Problem with child and extend? > > Have someone a best-practise or help for me ... > > Thanks... > HITECH68 > > > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Navigation-set-active-Page-tp19897122p19901258.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]
RE: Navigation set active Page
I don't think it's a best practice but I set the active link name in the session when a navigation link is clicked and then in the base page constructor I get the active link name from the session and modify the css class of the related link item using an attribute appender.. -Original Message- From: HITECH79 [mailto:[EMAIL PROTECTED] Sent: Thu 10/9/2008 2:40 PM To: users@wicket.apache.org Subject: Navigation set active Page Hallo, i want to solve this problem: I create a Navigation for my project with css. I cant set the active Page in the Navigation. Body-Problem with child and extend? Have someone a best-practise or help for me ... Thanks... HITECH68 -- View this message in context: http://www.nabble.com/Navigation-set-active-Page-tp19897122p19897122.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]
Navigation set active Page
Hallo, i want to solve this problem: I create a Navigation for my project with css. I cant set the active Page in the Navigation. Body-Problem with child and extend? Have someone a best-practise or help for me ... Thanks... HITECH68 -- View this message in context: http://www.nabble.com/Navigation-set-active-Page-tp19897122p19897122.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]