Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/portlet
In directory
james.mmbase.org:/tmp/cvs-serv28421/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/portlet
Modified Files:
TagRelatedPortlet.java
Log Message:
CMSC-1066 Worked on with implementing the tag cloud module
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/portlet
See also: http://www.mmbase.org/jira/browse/CMSC-1066
Index: TagRelatedPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/portlet/TagRelatedPortlet.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- TagRelatedPortlet.java 19 Sep 2008 14:55:38 -0000 1.3
+++ TagRelatedPortlet.java 23 Sep 2008 15:19:25 -0000 1.4
@@ -15,7 +15,6 @@
import javax.servlet.http.HttpServletRequest;
import org.apache.pluto.core.impl.PortletRequestImpl;
-import org.apache.struts.taglib.TagUtils;
import com.finalist.cmsc.beans.om.NavigationItem;
import com.finalist.cmsc.beans.om.Page;
@@ -39,25 +38,28 @@
String elementId = getRelatedElementId(req, window);
if (elementId != null) {
- List<Tag> tags = TagCloudUtil.getRelatedTags(Integer
- .parseInt(elementId));
+ List<Tag> tags =
TagCloudUtil.getRelatedTags(Integer.parseInt(elementId));
+ req.setAttribute("elementId", elementId);
req.setAttribute("tags", tags);
} else {
String channelId = getIdFromScreen(req, window,
"contentchannel");
if (channelId != null) {
- List<Tag> tags = TagCloudUtil
- .getChannelRelatedTags(new
Integer(channelId));
+ List<Tag> tags =
TagCloudUtil.getChannelRelatedTags(new Integer(channelId));
+ req.setAttribute("channelId", channelId);
req.setAttribute("tags", tags);
} else {
String tag = getIdFromScreen(req, window,
"tag");
if (tag == null) {
tag = getTagFromRequestParameters(req,
window);
}
+ if(tag != null) {
tag = tag.replaceAll("0x8", " ");
List<Tag> tags =
TagCloudUtil.getTagRelatedTags(tag);
+ req.setAttribute("tag", tag);
req.setAttribute("tags", tags);
}
}
+ }
super.doView(req, res);
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs