Hello!

I have a list with markup
                <ul>
                    <li>  Page1  </li>
                    <li>  Page2  </li>
               </ul>
and class "current" highlights the current page in my menu.
Then I add the link for one Page2:
page2Link = new AjaxLink("page2") {

            @Override
            public void onClick(AjaxRequestTarget target) {
                this.add(new AttributeAppender("class", new
Model("current"), " ")); //adding the current class
                page1.add(new CssClassRemover("current")); //removing the
current class from page1 li
                target.addComponent(listContainer);   
                setResponsePage(Page1.class);
            }
        };

After I add the setResponsePage(), the css class changes are not visible
anymore. Is there a way to
make the chages to my list remain after calling setResponsePage?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Keep-css-changes-after-setResponsePage-tp4650206.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to