Re: Adding attribute to selected menu item

2011-01-30 Thread msj121
clicks a menu link. But it is not working. What am i doing wrong? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Adding-attribute-to-selected-menu-item-tp3244327p3247201.html Sent from the Users forum mailing list archive at Nabble.com

Adding attribute to selected menu item

2011-01-28 Thread Haman Abel
Hello to all, i am trying to build a dynamic menu based on data from a database. So i thought i could build it like my code shows it. To highlight the selected menu i try to dynamically add an attribute to the li tag in the onClick method. I would also want to load and repaint other panels

Re: Adding attribute to selected menu item

2011-01-28 Thread Pedro Santos
Hi Haman, ListView items are recreated by default (see RepeatingView or ListView#setReuseItems). So your code is adding an AttributeAppender to an component that will be discarded in benefit of a new one for the next render. On Fri, Jan 28, 2011 at 10:28 AM, Haman Abel fha...@online.de wrote: