On Tue, Jun 7, 2011 at 11:20 PM, wmike1...@gmail.com
<wmike1...@gmail.com> wrote:
> 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);
listView.modelChanged();
target.addComponent(listView);
>             }
> }
>
>
>
> --
> 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
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to