Re: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-20 Thread Sebastien
Hi Ulrich, If not already done, you should read the wicket free guide, in particular the model section: http://ci.apache.org/projects/wicket/guide/6.x/guide/single.html#modelsforms_1 The PropertyModel paragraph will answer your question... Happy reading best regards, Sebastien. On Sat, Jun

Re: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-20 Thread Ulrich
@Sebastien, thanks - works. I had started this way, but didn't get the ListView becoming instantiated. Trying again now worked fine. Nevertheless I still can't tell why the both of the approaches react different; I had implemented it as far as I can see alike. -- View this message in context:

Re: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-20 Thread Ulrich
@Ernesto, I understand, that the idea of the LoadableDetachableModule is to get rid of the storage occupied by the list to avoid an overhead of serialization. To get sort of dynamics it mus be nested with a PropertyModel, isn't it? I will give it a try tomorrow. -- View this message in context:

Re: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-19 Thread Sebastien
Hi, PropertyModel pm = new PropertyModel(this, dataList); ListListData werte = (ListListData) pm.getObject(); final ListView listView = new ListView(listentries, werte ) You need to pass a model to the list view: final ListView listView = new ListView(listentries, new

Re: Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-19 Thread Ernesto Reinaldo Barreiro
Listview might be chancing your List? Use instead an LDM that always fetch fresh copy of the List... On Fri, Jun 19, 2015 at 9:03 PM, Ulrich for...@gombers.de wrote: Want to refresh page and show curently added entry to database. But does not work. To trap down the reason I've created two

Webpage does not refresh when ListView is based on a List supplied by a database

2015-06-19 Thread Ulrich
Want to refresh page and show curently added entry to database. But does not work. To trap down the reason I've created two applications which are very similiar. Both show a java.util.List - on is filled from a database the other one immediately from the program (ListString[].add()). The second