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

Modified Files:
        NodeReferrerTag.java 
Log Message:
damn, some jsps got very confused by that


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


Index: NodeReferrerTag.java
===================================================================
RCS file: 
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/NodeReferrerTag.java,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- NodeReferrerTag.java        24 Jan 2008 12:10:47 -0000      1.35
+++ NodeReferrerTag.java        24 Jan 2008 14:20:35 -0000      1.36
@@ -27,7 +27,7 @@
  * NodeProviderTag and therefore would be a NodeReferrerTag.
  *
  * @author Michiel Meeuwissen
- * @version $Id: NodeReferrerTag.java,v 1.35 2008/01/24 12:10:47 michiel Exp $
+ * @version $Id: NodeReferrerTag.java,v 1.36 2008/01/24 14:20:35 michiel Exp $
  */
 
 public abstract class NodeReferrerTag extends CloudReferrerTag {
@@ -89,7 +89,7 @@
      * Gets the Node variable from the parent NodeProvider.
      * @return a org.mmbase.bridge.Node
      */
-    public Node getNode() throws JspTagException {
+    protected Node getNode() throws JspTagException {
         Node node =  parentNodeId == Attribute.NULL ? getNodeFromPageContext() 
: null;
         // get the node from a parent element.
         if (node == null) {
@@ -105,6 +105,16 @@
         }
         return node;
     }
+
+    /**
+     * As [EMAIL PROTECTED] #getNode} only with a different name, because 
taglib compilers can be confused
+     * otherwise. (because of [EMAIL PROTECTED] #setNode(String)})
+     * @since MMBase-1.8.6
+     */
+    public final Node findNode() throws JspTagException {
+        return getNode();
+    }
+
     public Cloud getCloudVar() throws JspTagException {
         CloudProvider cp = findCloudProvider(false);
         if (cp != null) {
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to