Hi, guys.

Just use PropertyModel.

Instead of this:

<code>
container.add(new ListView<MyPanel>("panels", panels) { ... }
</code>

use this

<code>
container.add( new ListView<MyPanel("panels", new PropertyModel<List<?
extends MyPanel>>( this, "panels" ) ) { ... }
</code>

where 'this' is referenced to instance of class that contains list of panels
as it's property.
And check PropertyModel description at Doc API.


Best regards, Alexander.

Reply via email to