[jsr-314-open] aggregating tag libraries under a common namespace
Martin Marinschek
mmarinschek at APACHE.ORG
Tue May 19 02:10:48 EDT 2009
Hi Dan,
this sounds reasonable to me.
As a work-around which might work even now: Couldn't you also choose
the variant of using the Java-based tag-library processing, and then
parse the XML files yourself?
regards,
Martin
On 5/16/09, Dan Allen <dan.j.allen at gmail.com> wrote:
> I have often encounter the situation where I want to append a tag to an
> existing library to avoid having to introduce a new namespace and, as a
> result, a fine-grained division of tags. However, currently, the mapping is
> such that you get one tag library per taglib.xml file. More than one
> taglib.xml, more than one tag library. Would it be possible to have the
> implementation detect two taglib.xml referencing the same namespace and
> merge the tags? Obviously, a startup exception would occur if the same tag
> is declared in more than one file with the same namespace, but I hardly
> think that would be much of an obstacle to the developer.
>
> To cite a specific use case, we want to have multiple modules in Seam, but
> we really don't want to have more namespaces than we need. Of course, we
> could get the build to merge the XML files, but that might not be possible
> if the developer is deploying the framework as separate JAR files.
>
> -Dan
>
> --
> Dan Allen
> Senior Software Engineer, Red Hat | Author of Seam in Action
>
> http://mojavelinux.com
> http://mojavelinux.com/seaminaction
> http://in.relation.to/Bloggers/Dan
>
> NOTE: While I make a strong effort to keep up with my email on a daily
> basis, personal or other work matters can sometimes keep me away
> from my email. If you contact me, but don't hear back for more than a week,
> it is very likely that I am excessively backlogged or the message was
> caught in the spam filters. Please don't hesitate to resend a message if
> you feel that it did not reach my attention.
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
More information about the jsr-314-open-mirror
mailing list