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

Modified Files:
        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.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- ListRelationsContainerTag.java      14 Aug 2008 13:58:37 -0000      1.22
+++ ListRelationsContainerTag.java      26 Nov 2008 14:20:37 -0000      1.23
@@ -25,7 +25,7 @@
  *
  * @author Michiel Meeuwissen
  * @since  MMBase-1.7
- * @version $Id: ListRelationsContainerTag.java,v 1.22 2008/08/14 13:58:37 
michiel Exp $
+ * @version $Id: ListRelationsContainerTag.java,v 1.23 2008/11/26 14:20:37 
michiel Exp $
  */
 public class ListRelationsContainerTag extends NodeReferrerTag implements 
NodeQueryContainer {
 
@@ -86,12 +86,14 @@
         return r;
     }
 
+    private static final String RELATEDQUERY_PREFIX = "___related___";
 
     public int doStartTag() throws JspException {
         initTag();
         prevQuery= pageContext.getAttribute(QueryContainer.KEY, 
QueryContainer.SCOPE);
         if (getReferid() != null) {
             query = (NodeQuery) 
getContextProvider().getContextContainer().getObject(getReferid());
+            relatedQuery = (NodeQuery) 
getContextProvider().getContextContainer().getObject(RELATEDQUERY_PREFIX + 
getReferid());
         } else {
             Node relatedFromNode = getNode();
             Cloud cloud = relatedFromNode.getCloud();
@@ -109,6 +111,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
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to