On Fri, Sep 25, 2009 at 12:38 PM, Fernando Wermus fernando.wer...@gmail.com
wrote:
Hi all,
I have this:
add(new PanelModulo(module,players,myPlayers.jpg, new
PropertyModel(modelo,players), true){
private static final long serialVersionUID = -3739151258006568848L;
@Override public
ajax wicket debug making the request but, I realized that It didn't call
the constructor again
the components add to ajax request target already are instantiated. You need
to resolve the complexity of new data refresh on your component model. See
if at some point you are updating players
I do.
I realized the following:
ListDataProvider which I extend to get the data show, doesnt take models!!
It only takes list. When ayaxlink is called, the ListDataProvider is
refreshed but with old data because It lacks of a model.
There is a mail talking about this issue.
1 - be sure to work on those list items. You are working on new ones? Keep
an referent to this list, call list.clear() and add those new items on it.
2 - how about to implement your own IDataProvider? ListDataProvider is a
very simple implementation that helds one single list
On Fri, Sep 25,
Pedro,
I chose the second option and now is working. What I do not understand
is why there isnt a ListDataProvider (provided by wicket) that accepts
models.
On Fri, Sep 25, 2009 at 2:23 PM, Pedro Santos pedros...@gmail.com wrote:
1 - be sure to work on those list items. You are working on