Adding new data to existing ListView

2015-03-13 Thread avchavan
Is it possible to add data to an existing ListView for which data is already
loaded?
Basically what i want is if say i have 10 records already present then add
10 more records to the existing ListView, so we get 20 records.
I tried but the ListView gets refreshed if i try to set the new list to it.

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-new-data-to-existing-ListView-tp4669967.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



Re: Adding new data to existing ListView

2015-03-13 Thread Martin Grigorov
Hi,

Yes, just put more items to its backing List. Or better use an IModel that
fetches the List dynamically based on some conditions.
You need to repaint/refresh it to be able to render the new items. If you
use Ajax then you have to repaint its (grand)parent.

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Mar 13, 2015 at 9:20 AM, avchavan avinash.cha...@yahoo.co.in
wrote:

 Is it possible to add data to an existing ListView for which data is
 already
 loaded?
 Basically what i want is if say i have 10 records already present then add
 10 more records to the existing ListView, so we get 20 records.
 I tried but the ListView gets refreshed if i try to set the new list to it.

 Thanks.

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Adding-new-data-to-existing-ListView-tp4669967.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