5,6 → 5,7 |
import org.tela_botanica.client.interfaces.ListePaginable; |
import org.tela_botanica.client.interfaces.Rafraichissable; |
import org.tela_botanica.client.modeles.aDonneeListe; |
import org.tela_botanica.client.util.UtilString; |
|
import com.extjs.gxt.ui.client.Registry; |
import com.google.gwt.i18n.client.Dictionary; |
53,11 → 54,18 |
private void initialiserCommentaireListe(JSONArray ListeDeCommentaires) { |
boolean chargerCollectionACommentaire = true; |
final int taillemax = ListeDeCommentaires.size(); |
|
for (int i = 0; i < taillemax; i++) { |
JSONObject commentaireCourant = ListeDeCommentaires.get(i).isObject() ; |
if (commentaireCourant != null) { |
Commentaire commentaire = new Commentaire(commentaireCourant, chargerCollectionACommentaire); |
this.put(commentaire.getId(), commentaire); |
|
if (!UtilString.isEmpty(commentaire.getCollectionACommentaire().getId())) { |
this.put(commentaire.getCollectionACommentaire().getId(), commentaire); |
} |
else { |
this.put(commentaire.getId(), commentaire); |
} |
} |
} |
} |