Looks like it could be something that could be solved by setting
reuseitems to true. But I still dont see why one would ever want to call
the ListViews getModel more than once when updating?
regards Nino
Nino Saturnino Martinez Vazquez Wael wrote:
> Hi
>
> I have this setup:
>
> ListView blockContainer = new ListView("blockContainer", model) {
> protected void populateItem(ListItem item) {
> item.getModelObject();
> more code...
> }
> I've experienced some what I belive unexpected behavior here. So I'll
> try to explain what I expect should happen when iterating trough the
> listview.
>
> In the above example, I would expect the following
>
> 1. listview should to call model.getObject to retrieve the list that
> it should iterate over.
> 2. item.getModelObject should give me the current items modelObject
>
> These two points are also what happens but its the way that they seem to
> be implemented that are odd.
>
> It looks like when calling item.getModelObject this is what happens:
> model.getObject.get(iterationnumber), I would have expected listview to
> extract the list only once?
>
>
> regards Nino
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user