Author: tyrell
Date: Sun May 4 20:21:33 2008
New Revision: 16494
Log:
Fixing MASHUP-777. entry.content is now normalized
Modified:
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/feed/Entry.java
Modified:
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/feed/Entry.java
==============================================================================
---
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/feed/Entry.java
(original)
+++
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/feed/Entry.java
Sun May 4 20:21:33 2008
@@ -108,22 +108,26 @@
entry.setContents(cont);
}
- public String jsGet_content() {
+ public String jsGet_content() {
+ String retContent = "";
+
if (entry.getContents() != null) {
ArrayList contents = (ArrayList) entry.getContents();
Iterator iterator = contents.iterator();
- String retContent = "";
SyndContent currentContent;
while (iterator.hasNext()) {
currentContent = (SyndContent) iterator.next();
retContent = retContent + " " + currentContent.getValue();
}
+ }
- return retContent;
- }else{
- return null;
+ if(retContent.compareTo("")==0){
+ // Let's check whether entry.description holds a payload
+ retContent = jsGet_description();
}
+
+ return retContent;
}
public void jsSet_contributor(String contributor) {
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev