11,6 → 11,7 |
import org.tela_botanica.client.modeles.ValeurListeAsyncDao; |
import org.tela_botanica.client.synchronisation.Sequenceur; |
import org.tela_botanica.client.util.Debug; |
import org.tela_botanica.client.util.UtilString; |
|
import com.extjs.gxt.ui.client.Registry; |
import com.extjs.gxt.ui.client.data.BasePagingLoadConfig; |
38,7 → 39,11 |
this.loadConfig = loadConfig; |
|
BasePagingLoadConfig lc = (BasePagingLoadConfig)loadConfig; |
mediateur.selectionnerPersonnesAPublication(this, this.publicationId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
if (!UtilString.isEmpty(this.publicationId)) { |
mediateur.selectionnerPersonnesAPublication(this, this.publicationId, recherche, lc.getOffset(), lc.getLimit(), sequenceur); |
} else { |
this.rafraichir(null); |
} |
} |
|
public void setPublicationId(String publicationId) { |
50,23 → 55,23 |
public void rafraichir(Object nouvellesDonnees) { |
try |
{ |
data = nouvellesDonnees; |
D d = null; |
|
if (reader != null) |
{ |
d = (D) reader.read(loadConfig, data); |
} |
else |
{ |
d = (D) data; |
if (d instanceof List) |
{ |
d = (D) new ArrayList((List) d); |
} |
} |
|
callback.onSuccess(d); |
D donneesRetour = null; |
if (nouvellesDonnees!=null) { |
data = nouvellesDonnees; |
if (reader != null) |
{ |
donneesRetour = (D) reader.read(loadConfig, data); |
} |
else |
{ |
donneesRetour = (D) data; |
if (donneesRetour instanceof List) |
{ |
donneesRetour = (D) new ArrayList((List) donneesRetour); |
} |
} |
} |
callback.onSuccess(donneesRetour); |
} |
catch (Exception e) |
{ |