Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 7.0.2.Final
    • Fix Version/s: None
    • Component/s: Web
    • Labels:

      Description

      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.

      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">

      In one of the modules, tiles-jsp-2.2.2.jar is present with the following 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?

      Attached to this message, you will find the modules and the test
      application.

      • Unzip the modules and copy them to your JBoss directory.
      • Unzip the application
      • Copy the webapplication.war file to your standalone/deployments directory

      After having added the attached modules to JBoss and deployed the
      application, you can see the result at:

      http://localhost:8080/webapplication

      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.

        Gliffy Diagrams

          Attachments

          1. modules.zip
            4.47 MB
          2. webapplication.zip
            16 kB

            Issue Links

              Activity

                People

                • Assignee:
                  rmaucher Remy Maucherat
                  Reporter:
                  juanm_med Juan Manuel Medina Apodaca
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: