Just resolved the issue. The problem was that I wasnt setting
"container.setOutputMarkupId(true);" before I initially added the container
to the page. I was setting it when the user clicked a button, which always
occurred after the container was initially added. 

My original flow was something like this:



WicketPanel class {
   ...
   instantiate container

   ajax onClick() {
      container.setOutputMarkupId(true);
      target.addComponent(container)
   }

   add(container)
}


It needs to be like this:



WicketPanel class {
   ...
   instantiate container
   container.setOutputMarkupId(true);

   ajax onClick() {
      target.addComponent(container)
   }

   add(container)
}


Makes sense. Thanks for all the help


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