Re: Navigation bar links

2012-08-22 Thread Martin Grigorov
See org.apache.wicket.markup.html.link.BookmarkablePageLink#linksTo(Page). if (link.linksTo(getPage()) { link.setEnable(false); } On Tue, Aug 21, 2012 at 7:54 PM, Mansour Al Akeel mansour.alak...@gmail.com wrote: Thank you a lot. Both methods did the trick. One last question in the same

Navigation bar links

2012-08-21 Thread Mansour Al Akeel
I am looking to produce the following mark up: ul lia href=/Home/a/li li class=current About/li lia href=contactContact us/a/li ul the problem is I can not add a conditionally to li. I am using ListView to populate the Items. Can someone give me a hint about how to achieve this ?? Thank you in

Re: Navigation bar links

2012-08-21 Thread Sven Meier
You can use a disabled link, which will render as a span. Sven On 08/21/2012 08:10 AM, Mansour Al Akeel wrote: I am looking to produce the following mark up: ul lia href=/Home/a/li li class=current About/li lia href=contactContact us/a/li ul the problem is I can not add a conditionally to li.

Re: Navigation bar links

2012-08-21 Thread Mansour Al Akeel
Thank you a lot. Both methods did the trick. One last question in the same context. This is the code I am working with: list.add(new BookmarkablePageLinkWebPage(link, HomePage.class)); list.add(new BookmarkablePageLinkWebPage(link, About.class)); list.add(new