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

Modified Files:
        RelatedNodesContainerTag.java 
Log Message:
made role a null-able


See also: 
http://cvs.mmbase.org/viewcvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/containers


Index: RelatedNodesContainerTag.java
===================================================================
RCS file: 
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/containers/RelatedNodesContainerTag.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- RelatedNodesContainerTag.java       27 Jun 2008 09:07:10 -0000      1.19
+++ RelatedNodesContainerTag.java       17 Jul 2008 13:51:37 -0000      1.20
@@ -26,7 +26,7 @@
  *
  * @author Michiel Meeuwissen
  * @since  MMBase-1.7
- * @version $Id: RelatedNodesContainerTag.java,v 1.19 2008/06/27 09:07:10 
michiel Exp $
+ * @version $Id: RelatedNodesContainerTag.java,v 1.20 2008/07/17 13:51:37 
michiel Exp $
  */
 public class RelatedNodesContainerTag extends ListNodesContainerTag {
 
@@ -46,7 +46,7 @@
      * @param role a role
      */
     public void setRole(String role) throws JspTagException {
-        this.role = getAttribute(role);
+        this.role = getAttribute(role, true);
     }
 
 
@@ -86,8 +86,8 @@
                 RelationStep relationStep = 
query.addRelationStep(cloud.getNodeManager(nodeManagerName),
                                                                   (String) 
role.getValue(this), (String) searchDirs.getValue(this));
                 query.setNodeStep(relationStep.getNext());
-                if (path != Attribute.NULL) throw new JspTagException("Should 
specify either 'type'/'role' or 'path' attributes on relatednodescontainer");
-                if (element != Attribute.NULL) throw new 
JspTagException("'element' can only be used in combination with 'path' 
attribute");
+                if (path != Attribute.NULL) throw new JspTagException("Should 
specify either 'type'/'role' or 'path' attributes on relatednodescontainer. 
Path=" + path + " Nodmanager=" + nodeManager + " role=" + role);
+                if (element != Attribute.NULL) throw new 
JspTagException("'element' can only be used in combination with 'path' 
attribute. Element=" + element);
             } else {
                 if (path == Attribute.NULL) throw new JspTagException("Should 
specify either 'type' or 'path' attributes on relatednodescontainer");
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to