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

Modified Files:
      Tag: MMBase-1_8
        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.26.2.6
retrieving revision 1.26.2.7
diff -u -b -r1.26.2.6 -r1.26.2.7
--- NodeReferrerTag.java        24 Jan 2008 12:09:50 -0000      1.26.2.6
+++ NodeReferrerTag.java        24 Jan 2008 14:18:50 -0000      1.26.2.7
@@ -28,7 +28,7 @@
  * NodeProviderTag and therefore would be a NodeReferrerTag.
  *
  * @author Michiel Meeuwissen
- * @version $Id: NodeReferrerTag.java,v 1.26.2.6 2008/01/24 12:09:50 michiel 
Exp $
+ * @version $Id: NodeReferrerTag.java,v 1.26.2.7 2008/01/24 14:18:50 michiel 
Exp $
  */
 
 public abstract class NodeReferrerTag extends CloudReferrerTag {
@@ -90,7 +90,7 @@
      * @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) {
@@ -106,6 +106,15 @@
         }
         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
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to