javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1001

Unable to have UIComponents and Facelet Composite components use the same namespace

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.2
    • Component/s: Facelets/VDL
    • Labels:
      None
    • Status Whiteboard:
      Hide

      size_medium importance_large

      Show
      size_medium importance_large

      Description

      Background:

      Some of the AlloyFaces components are Java UIComponents (mainly for speed/performance), but others are Facelet CCs.

      I really wish I could have one namespace, but I can't seem to get Mojarra to let me have both UIComponents and Facelet CCs defined in the same taglib.xml.

      For example, UIComponents defined here:
      http://svn.portletfaces.org/svn/portletfaces/alloy/faces/alloyfaces/trunk/src/main/resources/META-INF/aui.taglib.xml

      And Facelet CCs defined here:
      http://svn.portletfaces.org/svn/portletfaces/alloy/faces/alloyfaces/trunk/src/main/resources/META-INF/aui-cc.taglib.xml

      The XML Schema of taglib.xml permits both to be defined in the same descriptor, but I can't get Mojarra to work with both.

      It's too bad because right now some of the components have the aui: namespace and others have the aui-cc: namespace.

        Issue Links

          Activity

          Hide
          Ed Burns added a comment -

          Proposal 20110513

          Show
          Ed Burns added a comment - Proposal 20110513
          Hide
          Mathias Werlitz added a comment -

          I have tried the patch.
          There is a small issue left: it does not work if the resource is located in nested folders e.g. /resources/somefolder/otherfolder/tag.xhtml . If the resource is located in a simple subfolder it works nicely (like /resources/somefolder/tag.xhtml).

          Show
          Mathias Werlitz added a comment - I have tried the patch. There is a small issue left: it does not work if the resource is located in nested folders e.g. /resources/somefolder/otherfolder/tag.xhtml . If the resource is located in a simple subfolder it works nicely (like /resources/somefolder/tag.xhtml).
          Hide
          Ed Burns added a comment -

          Adding jsf-api/doc/web-facelettaglibrary_2_2.xsd
          Sending jsf-api/src/main/java/javax/faces/application/ResourceHandler.java
          Sending jsf-api/src/main/java/javax/faces/application/ResourceHandlerWrapper.java
          Sending jsf-ri/src/main/java/com/sun/faces/application/resource/ResourceHandlerImpl.java
          Sending jsf-ri/src/main/java/com/sun/faces/application/resource/ResourceManager.java
          Sending jsf-ri/src/main/java/com/sun/faces/config/ConfigManager.java
          Sending jsf-ri/src/main/java/com/sun/faces/config/DbfFactory.java
          Sending jsf-ri/src/main/java/com/sun/faces/config/processor/FaceletTaglibConfigProcessor.java
          Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/AbstractTagLibrary.java
          Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/TagLibraryImpl.java
          Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/CompositeComponentTagHandler.java
          Adding jsf-test/JAVASERVERFACES-2033
          Adding jsf-test/JAVASERVERFACES-2033/build.xml
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/pom.xml
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/java
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/java/com
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/java/com/sun
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/java/com/sun/faceression
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/java/com/sun/faceression/i_jsf_2033
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/java/com/sun/faceression/i_jsf_2033/UserBean.java
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/WEB-INF
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/WEB-INF/faces-config.xml
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/WEB-INF/test.taglib.xml
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/WEB-INF/web.xml
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/index.xhtml
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/resources
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/resources/myCC
          Adding jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/resources/myCC/layout.xhtml
          Sending jsf-test/build.xml
          Transmitting file data ....................
          Committed revision 9172.

          Show
          Ed Burns added a comment - Adding jsf-api/doc/web-facelettaglibrary_2_2.xsd Sending jsf-api/src/main/java/javax/faces/application/ResourceHandler.java Sending jsf-api/src/main/java/javax/faces/application/ResourceHandlerWrapper.java Sending jsf-ri/src/main/java/com/sun/faces/application/resource/ResourceHandlerImpl.java Sending jsf-ri/src/main/java/com/sun/faces/application/resource/ResourceManager.java Sending jsf-ri/src/main/java/com/sun/faces/config/ConfigManager.java Sending jsf-ri/src/main/java/com/sun/faces/config/DbfFactory.java Sending jsf-ri/src/main/java/com/sun/faces/config/processor/FaceletTaglibConfigProcessor.java Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/AbstractTagLibrary.java Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/TagLibraryImpl.java Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/CompositeComponentTagHandler.java Adding jsf-test/ JAVASERVERFACES-2033 Adding jsf-test/ JAVASERVERFACES-2033 /build.xml Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/pom.xml Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/java Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/java/com Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/java/com/sun Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/java/com/sun/faceression Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/java/com/sun/faceression/i_jsf_2033 Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/java/com/sun/faceression/i_jsf_2033/UserBean.java Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/WEB-INF Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/WEB-INF/faces-config.xml Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/WEB-INF/test.taglib.xml Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/WEB-INF/web.xml Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/index.xhtml Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/resources Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/resources/myCC Adding jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/resources/myCC/layout.xhtml Sending jsf-test/build.xml Transmitting file data .................... Committed revision 9172.
          Hide
          Ed Burns added a comment -

          Change the schema to have the following as the usage syntax.

          <tag>
          <tag-name>layout</tag-name>
          <component>
          <resource-id>myCC/whatever.xhtml</resource-id>
          </component>
          </tag>

          Show
          Ed Burns added a comment - Change the schema to have the following as the usage syntax. <tag> <tag-name>layout</tag-name> <component> <resource-id>myCC/whatever.xhtml</resource-id> </component> </tag>
          Hide
          Ed Burns added a comment -

          Sending jsf-api/doc/web-facelettaglibrary_2_2.xsd
          Sending jsf-ri/src/main/java/com/sun/faces/config/processor/FaceletTaglibConfigProcessor.java
          Sending jsf-test/JAVASERVERFACES-2033/i_jsf_2033_war/src/main/webapp/WEB-INF/test.taglib.xml
          Transmitting file data ...
          Committed revision 9192.

          Show
          Ed Burns added a comment - Sending jsf-api/doc/web-facelettaglibrary_2_2.xsd Sending jsf-ri/src/main/java/com/sun/faces/config/processor/FaceletTaglibConfigProcessor.java Sending jsf-test/ JAVASERVERFACES-2033 /i_jsf_2033_war/src/main/webapp/WEB-INF/test.taglib.xml Transmitting file data ... Committed revision 9192.
          Hide
          Manfred Riem added a comment -

          Closing resolved issue out

          Show
          Manfred Riem added a comment - Closing resolved issue out

            People

            • Assignee:
              Ed Burns
              Reporter:
              Ed Burns
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: