Re: Navigation bar links

2012-08-21 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 wrote: > Thank you a lot. > Both methods did the trick. One last question in the same context. This is > the code

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 BookmarkablePageLink("link", HomePage.class)); list.add(new BookmarkablePageLink("link", About.class)); list.add(new BookmarkablePageLink("link", Con

Re: Navigation bar links

2012-08-20 Thread Martin Grigorov
Or you can do link.setRenderBodyOnly(true); On Tue, Aug 21, 2012 at 9:30 AM, Sven Meier wrote: > You can use a disabled link, which will render as a . > > Sven > > > On 08/21/2012 08:10 AM, Mansour Al Akeel wrote: >> >> I am looking to produce the following mark up: >> >> Home >> About >> http:

Re: Navigation bar links

2012-08-20 Thread Sven Meier
You can use a disabled link, which will render as a . Sven On 08/21/2012 08:10 AM, Mansour Al Akeel wrote: I am looking to produce the following mark up: Home About - To unsubscribe, e-mail: users-unsubscr...@wicket.apache

Navigation bar links

2012-08-20 Thread Mansour Al Akeel
I am looking to produce the following mark up: Home About