fixing issue on client-side

This commit is contained in:
Francesco Mangiacrapa 2020-11-24 14:24:59 +01:00
parent 95a1656d27
commit c5e03bbd1a
1 changed files with 1 additions and 43 deletions

View File

@ -194,48 +194,6 @@ public class LayerManager {
GeoportalDataViewerConstants.print("2: "+date); GeoportalDataViewerConstants.print("2: "+date);
flex.setHTML(2, 0, new HTML("<code>"+date+"</code>").toString()); flex.setHTML(2, 0, new HTML("<code>"+date+"</code>").toString());
/*Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
List<String> listConcessioni = entries.get("product_id");
if(listConcessioni!=null && listConcessioni.size()>0) {
String concessioneId = listConcessioni.get(0);
try {
Long theConcessioneId = Long.parseLong(concessioneId);
GeoportalDataViewerServiceAsync.Util.getInstance().getUploadedImagesForId("Concessione", theConcessioneId, 1, new AsyncCallback<List<UploadedImageDV>>() {
@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
}
@Override
public void onSuccess(List<UploadedImageDV> result) {
GWT.log("Loaded images: "+result);
for (UploadedImageDV img : result) {
if(img.getListWsContent()!=null) {
WorkspaceContentDV wsContent = img.getListWsContent().get(img.getListWsContent().size()-1);
String theImgHTML = "<img src=\""+wsContent.getLink()+"\"></img>";
GWT.log("theImgHTML: "+theImgHTML);
flex.setHTML(flex.getRowCount()+1, 0, theImgHTML);
}
}
}
});
}catch (Exception e) {
// TODO: handle exception
}
}
}
});*/
if(geoNaDataObject.getMapImages()!=null) { if(geoNaDataObject.getMapImages()!=null) {
for (Long key : geoNaDataObject.getMapImages().keySet()) { for (Long key : geoNaDataObject.getMapImages().keySet()) {
List<UploadedImageDV> listUI = geoNaDataObject.getMapImages().get(key); List<UploadedImageDV> listUI = geoNaDataObject.getMapImages().get(key);
@ -247,7 +205,7 @@ public class LayerManager {
String theImgHTML = "<img src=\""+wsContent.getLink()+"\"></img>"; String theImgHTML = "<img src=\""+wsContent.getLink()+"\"></img>";
GWT.log("theImgHTML: "+theImgHTML); GWT.log("theImgHTML: "+theImgHTML);
GeoportalDataViewerConstants.print("The row are: "+flex.getRowCount()); GeoportalDataViewerConstants.print("The row are: "+flex.getRowCount());
flex.add(new HTML(theImgHTML)); flex.setHTML(flex.getRowCount()+1, 0, theImgHTML);
} }
} }
} }