Update of 
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/containers
In directory james.mmbase.org:/tmp/cvs-serv32105

Modified Files:
      Tag: MMBase-1_8
        ListRelationsContainerTag.java 
Log Message:
related to MMB-1742. referid stuff was indeed implemented, but not properly


See also: 
http://cvs.mmbase.org/viewcvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/containers
See also: http://www.mmbase.org/jira/browse/MMB-1742


Index: ListRelationsContainerTag.java
===================================================================
RCS file: 
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/containers/ListRelationsContainerTag.java,v
retrieving revision 1.14.2.1
retrieving revision 1.14.2.2
diff -u -b -r1.14.2.1 -r1.14.2.2
--- ListRelationsContainerTag.java      26 Feb 2008 15:42:41 -0000      1.14.2.1
+++ ListRelationsContainerTag.java      26 Nov 2008 14:19:43 -0000      1.14.2.2
@@ -27,7 +27,7 @@
  *
  * @author Michiel Meeuwissen
  * @since  MMBase-1.7
- * @version $Id: ListRelationsContainerTag.java,v 1.14.2.1 2008/02/26 15:42:41 
michiel Exp $
+ * @version $Id: ListRelationsContainerTag.java,v 1.14.2.2 2008/11/26 14:19:43 
michiel Exp $
  */
 public class ListRelationsContainerTag extends NodeReferrerTag implements 
NodeQueryContainer {
 
@@ -96,10 +96,12 @@
         return r;
     }
 
+    private static final String RELATEDQUERY_PREFIX = "___related___";
 
     public int doStartTag() throws JspTagException {
         if (getReferid() != null) {
             query = (NodeQuery) 
getContextProvider().getContextContainer().getObject(getReferid());
+            relatedQuery = (NodeQuery) 
getContextProvider().getContextContainer().getObject(RELATEDQUERY_PREFIX + 
getReferid());
         } else {
             Cloud cloud = getCloudVar();
             NodeManager nm = null;
@@ -117,6 +119,7 @@
 
         if (getId() != null) { // write to context.
             getContextProvider().getContextContainer().register(getId(), 
query);
+            
getContextProvider().getContextContainer().register(RELATEDQUERY_PREFIX + 
getId(), relatedQuery);
         }
         if (jspVar != null) {
             pageContext.setAttribute(jspVar, query);
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to