You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Haberman <st...@chase3000.com> on 2002/08/24 01:28:49 UTC

[jelly] [patch] percolating up

Sorry, I spoke too soon about Maven working with Jelly HEAD. You forgot
to update the second registerTagLibrary method in JellyContext. With a
quick look (and it's working for me), I think it needs to be:

Index: src/java/org/apache/commons/jelly/JellyContext.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jell
y/JellyContext.java,v
retrieving revision 1.24
diff -u -r1.24 JellyContext.java
--- src/java/org/apache/commons/jelly/JellyContext.java	23 Aug 2002
10:29:18 -0000	1.24
+++ src/java/org/apache/commons/jelly/JellyContext.java	23 Aug 2002
23:27:11 -0000
@@ -333,6 +333,10 @@
             log.debug("Registering tag library to: " + namespaceURI + "
taglib: " + taglib);
         }
         taglibs.put(namespaceURI, taglib);
+        
+        if (isExportLibraries() && parent != null) {
+            parent.registerTagLibrary( namespaceURI, taglib );
+        }
     }
 
     /** Registers the given tag library class name against the given
namespace URI.

- Stephen


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] [patch] percolating up

Posted by James Strachan <ja...@yahoo.co.uk>.
Patch applied. Many thanks Stephen.

James
-------
http://radio.weblogs.com/0112098/
----- Original Message -----
From: "Stephen Haberman" <st...@chase3000.com>
To: <co...@jakarta.apache.org>
Sent: Saturday, August 24, 2002 12:28 AM
Subject: [jelly] [patch] percolating up


> Sorry, I spoke too soon about Maven working with Jelly HEAD. You forgot
> to update the second registerTagLibrary method in JellyContext. With a
> quick look (and it's working for me), I think it needs to be:
>
> Index: src/java/org/apache/commons/jelly/JellyContext.java
> ===================================================================
> RCS file:
> /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jell
> y/JellyContext.java,v
> retrieving revision 1.24
> diff -u -r1.24 JellyContext.java
> --- src/java/org/apache/commons/jelly/JellyContext.java 23 Aug 2002
> 10:29:18 -0000 1.24
> +++ src/java/org/apache/commons/jelly/JellyContext.java 23 Aug 2002
> 23:27:11 -0000
> @@ -333,6 +333,10 @@
>              log.debug("Registering tag library to: " + namespaceURI + "
> taglib: " + taglib);
>          }
>          taglibs.put(namespaceURI, taglib);
> +
> +        if (isExportLibraries() && parent != null) {
> +            parent.registerTagLibrary( namespaceURI, taglib );
> +        }
>      }
>
>      /** Registers the given tag library class name against the given
> namespace URI.
>
> - Stephen
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>