You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Morgan Delagrange <md...@yahoo.com> on 2002/09/11 00:09:39 UTC
[Jelly] Jelly tag libraries at runtime
Hi all,
I'm getting my Jelly feet wet. If you create your own
permanent tag library (via the TagLibrary class), is
there a way to dynamically assign new tag libraries,
possibly inside the jelly script itself, without
modifying the jelly.properties file in the classpath?
- Morgan
=====
Morgan Delagrange
http://jakarta.apache.org/taglibs
http://jakarta.apache.org/commons
http://axion.tigris.org
http://jakarta.apache.org/watchdog
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Jelly] Jelly tag libraries at runtime
Posted by James Strachan <ja...@yahoo.co.uk>.
From: "Morgan Delagrange" <md...@yahoo.com>
> Thanks! I was going to submit a patch to the docs,
> but there it is in the FAQ. Just a little hard to
> find.
http://jakarta.apache.org/commons/sandbox/jelly/faq.html
http://jakarta.apache.org/commons/sandbox/jelly/faq.html#adding-taglibs
The aim is to ultimately allow for new libraries to be packaged as jars and
dropped on the classpath and to use commons-discovery (rather like how JAXP
works) to find new libraries dynamically. The code is nearly complete for
this (see *.jelly.impl.TagLibraryResolver interface and the
*.jelly.impl.DefaultTagLibraryResolver implementation), its just not enabled
in CVS HEAD yet. Mostly it just needs to catch up on the latest
commons-discovery work and port to the latest version.
It'd be really cool one day to use Maven's repository and distribution
mechansim so that new libraries and their dependencies could be
automatically downloaded into the repository and added to the classpath.
This is a bit like how Maven plugins work; as they are used they are
download from the repository along with any new dependencies they have.
Using the same mechanism would be really cool, so that the core of Jelly
could have a small number of dependencies, then as you use more Jelly
libraries, they automatically download their required jars also.
James
-------
http://radio.weblogs.com/0112098/
__________________________________________________
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>
Re: [Jelly] Jelly tag libraries at runtime
Posted by Morgan Delagrange <md...@yahoo.com>.
Thanks! I was going to submit a patch to the docs,
but there it is in the FAQ. Just a little hard to
find.
--- bob mcwhirter <bo...@werken.com> wrote:
> On Tue, 10 Sep 2002, Morgan Delagrange wrote:
>
> > Hi all,
> >
> > I'm getting my Jelly feet wet. If you create your
> own
> > permanent tag library (via the TagLibrary class),
> is
> > there a way to dynamically assign new tag
> libraries,
> > possibly inside the jelly script itself, without
> > modifying the jelly.properties file in the
> classpath?
>
> Add an xmlns declaration like:
>
> <someElement
>
xmlns:myprefix="jelly:org.apache.path.to.my.TagLibrary">
> <myprefix:mytag/>
> </someElement>
>
> -bob
>
=====
Morgan Delagrange
http://jakarta.apache.org/taglibs
http://jakarta.apache.org/commons
http://axion.tigris.org
http://jakarta.apache.org/watchdog
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [Jelly] Jelly tag libraries at runtime
Posted by bob mcwhirter <bo...@werken.com>.
On Tue, 10 Sep 2002, Morgan Delagrange wrote:
> Hi all,
>
> I'm getting my Jelly feet wet. If you create your own
> permanent tag library (via the TagLibrary class), is
> there a way to dynamically assign new tag libraries,
> possibly inside the jelly script itself, without
> modifying the jelly.properties file in the classpath?
Add an xmlns declaration like:
<someElement xmlns:myprefix="jelly:org.apache.path.to.my.TagLibrary">
<myprefix:mytag/>
</someElement>
-bob
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>