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: [email protected]
For additional commands, e-mail: [email protected]