I now have this working by using a nested form around the listview and using an AjaxButton to submit the whole list every time I want to add an item. I don't need to mess with the submit behaviour of the button because the form doesn't do anything. Its just there to update the ListViews model.
I don't really understand why ListView uses the same id for each item. I notice that a RepeatingView does not have the same issue as ListView of re-using the same id. Is it possible to use AJAX to insert a sibbling element into the list? John Patterson wrote: > > Hi, I have a ListView in a table that can have rows dynamically added with > AJAX. When I add a row and enter a value, then add another row the first > row is reset to an empty value. > > Do I need to submit the form for each AJAX request to send the new values > to the server? > > Thanks, > > JD > -- View this message in context: http://www.nabble.com/AJAX-refresh-of-ListView-in-Form-tp19105261p19119105.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]