[jboss-jira] [JBoss JIRA] (WFLY-1172) mechanism to load tag libraries from module
Brad Maxwell (JIRA)
jira-events at lists.jboss.org
Tue Jul 23 17:54:26 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792549#comment-12792549 ]
Brad Maxwell commented on WFLY-1172:
------------------------------------
In AS 7.2 and greater, you just need to add meta-inf="export" or import to your jboss-deployment-structure to pull in META-INF. This makes them available on the classpath and you can locate them with Thread.currentThread().getContextClassLoader().getResource("/META-INF/mytaglib.tld") , however I believe the jsp spec or such only loads META-INF/*.tld from jars in the application, it does not check the classloader. So the change is likely a feature extension of the spec to scan the classloader for tlds - such as in JBossWeb or Undertow.
> mechanism to load tag libraries from module
> -------------------------------------------
>
> Key: WFLY-1172
> URL: https://issues.jboss.org/browse/WFLY-1172
> Project: WildFly
> Issue Type: Feature Request
> Components: Web (JBoss Web)
> Reporter: Ivica Loncar
> Assignee: Remy Maucherat
> Priority: Critical
> Labels: modules, tag, taglib, tld
> Original Estimate: 1 day
> Remaining Estimate: 1 day
>
> tag libraries are scanned only if they appear in jar inside WEB-INF/lib or are defined in tld under WEB-INF.
> The simplest scenario to explain why this is a problem: portlet 2 defines standard portlet taglib, but the classes in this file come from concrete implementations. Currently I see no way to use 2 different portals in a portable way.
> Please provide a way to notify a relevant subsystem for web applications that specific module contains a .tld.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list