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
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.
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