fixed posting like with hide image generatign bug on updates of the portlet

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@94359 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2014-04-04 14:08:04 +00:00
parent 3460b8f22d
commit a416636219
3 changed files with 6 additions and 7 deletions

View File

@ -4,9 +4,6 @@
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
<dependent-module archiveName="fileupload-progress-bar-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/fileupload-progress-bar/fileupload-progress-bar">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
<property name="context-root" value="share-updates"/>
</wb-module>

View File

@ -95,11 +95,11 @@ public class ImageSwitcher extends Composite {
protected String getSelectedImageURL() {
if (!visible)
image.setUrl(blank_image_url);
return null;
return image.getUrl();
}
/**
* because i don't want it to me removed from DOM
* because i don't want it to be removed from DOM
*/
public void setVisible(boolean visible) {
this.visible = visible;

View File

@ -180,7 +180,9 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
String linkDesc = preview.getDescription();
String host = preview.getHost();
String url = preview.getUrl();
if (urlThumbnail == null)
urlThumbnail = "null";
Date feedDate = new Date();
//this means the user has shared a file without text in it.
String textToPost = "";
@ -188,7 +190,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
textToPost = TextTransfromUtils.convertFileNameAnchorHTML(url);
} else {
textToPost = escapedFeedText;
System.out.println("textToPost=" + textToPost);
//System.out.println("textToPost=" + textToPost);
}
ScopeBean scope = new ScopeBean(session.getScope());