if(item.getModelObject().getDestPage().equals(getPage().getClass())) {
    item.add(AttributeModifier.append("class", "active"));
}

Martijn


On Tue, Dec 30, 2014 at 7:48 PM, K <kondetiudayki...@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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to