sorry, trying to format that

AjaxLink newIncButton = new AjaxLink("newIncButton"){
        @Override
        public void onClick(AjaxRequestTarget target) {
             List list = new ArrayList(bean.getIncList());
               Incident inc = new Incident();
               inc.setAction("action");
               inc.setDescription("whatever description");
               list.add(0, inc);
               bean.setIncList(list);
             }
}



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/adding-items-dynamically-to-ListView-tp3580840p3580846.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

Reply via email to