Navigation set active Page

View: New views
3 Messages — Rating Filter:   Alert me  

Navigation set active Page

by HITECH79 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


RE: Navigation set active Page

by Serkan Camurcuoglu-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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:mutlu.kocak@...]
Sent: Thu 10/9/2008 2:40 PM
To: users@...
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: users-unsubscribe@...
For additional commands, e-mail: users-help@...




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

Re: Navigation set active Page

by Michael Sparer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
LightInTheBox - Buy quality products at wholesale price!