You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martijn Dashorst <ma...@gmail.com> on 2015/01/02 09:53:25 UTC
Re: How do I get the current page?
if(item.getModelObject().getDestPage().equals(getPage().getClass())) {
item.add(AttributeModifier.append("class", "active"));
}
Martijn
On Tue, Dec 30, 2014 at 7:48 PM, K <ko...@gmail.com> wrote:
> Hi Aksarben
>
> i have a web application in which there are six links in main menu. i want
> my app to highlight the link that is selected.
>
> <http://apache-wicket.1842946.n4.nabble.com/file/n4668907/Capture.png>
>
> My code:
>
>
> List<HeaderListItems> is list of pojo item. my pojo has two fields
> label(String) and destPage(Class)
>
> My Mark-up:
>
>
>
>
> -----
> K
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-do-I-get-the-current-page-tp1851661p4668907.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org