[jboss-jira] [JBoss JIRA] (AS7-2522) Load taglibs in module for JBoss 7
Juan Manuel Medina Apodaca (Created) (JIRA)
jira-events at lists.jboss.org
Fri Nov 4 23:28:45 EDT 2011
Load taglibs in module for JBoss 7
----------------------------------
Key: AS7-2522
URL: https://issues.jboss.org/browse/AS7-2522
Project: Application Server 7
Issue Type: Feature Request
Components: Modules
Affects Versions: 7.0.2.Final
Environment: Linux Debian 2.6.32 (Squeeze)
Reporter: Juan Manuel Medina Apodaca
Assignee: David Lloyd
The taglibs contained in a module are not loaded for an application which uses such module.
For example, when trying to use Tiles in a web application with Jboss 7.0.2, I added
the necessary modules for Tiles to get loaded, but when a tiles page is shown,
the "http://tiles.apache.org/tags-tiles" taglib is not recognized.
At web.xml, I added the listener and the servlet, which work fine:
<listener>
<listener-class>org.apache.tiles.extras.complete.CompleteAutoloadTilesListener</listener-class>
</listener>
<servlet>
<servlet-name>Tiles Dispatch Servlet</servlet-name>
<servlet-class>org.apache.tiles.web.util.TilesDispatchServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Tiles Dispatch Servlet</servlet-name>
<url-pattern>*.tiles</url-pattern>
</servlet-mapping>
In the page, the taglib is declared:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:tiles="http://tiles.apache.org/tags-tiles">
Finally in one of the modules, tiles-jsp-2.2.2.jar is present with the taglib:
<tlib-version>1.2</tlib-version>
<short-name>tiles</short-name>
<uri>http://tiles.apache.org/tags-tiles</uri>
The tiles module is referenced by configuration at the pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<archive>
<manifestEntries>
<Dependencies>org.apache.tiles</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>
I know that tiles is referenced by the application because, if I delete the configuration
section above, the application doesn't deploy since some referenced libraries are not present.
Shouldn't the taglib be automatically loaded as the module is included as a dependency?
At the resulting page, the following message is displayed:
Warning: This page calls for XML namespace
http://tiles.apache.org/tags-tiles declared with prefix tiles but no
taglibrary exists for that namespace.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list