Composite component folder structure

JSF spec 2.2 (2013-03-20) says in clause 10.3.3.1 (Declaring a component library for use on the Facelet page):

If the facelet tag library is declared on the XHTML page with a namespace starting with the string " http://java.sun.com/jsf/composite/ " (without quotes), the rest of the namespace declaration is taken as the name of the resource library [ ...]

If the substring following " http://java.sun.com/jsf/composite/ " contains the character "/" or any characters that are not legal for the library name, the following actions should be taken. If application.getProjectStage () is Development, an informational error message should be posted on the page and also logged. Otherwise, the message should only be logged.

Thus, it means that it is illegal to have the following folder structure:

resources
    components
        system
        something_specific
        something_even_more_specific

and refer to the library name http://java.sun.com/jsf/composite/components/something_specific "? Is this correct?

This seems like a weird restriction. I want my sources to be structured, not put together in a huge piece.

Wildfly 8.0.0.CR1, , .

" " .

+3
2

.

: JSF 740, 740, , JSF 1141, 1141.

. .

Mojarra 2.2.5 XHTML, taglib <composite-library-name>components/system</composite-library-name>. , / JSF - . , JSF spec/impl. , .

MyFaces org.apache.myfaces.STRICT_JSF_2_ALLOW_SLASH_LIBRARY_NAME (MyFaces issue 3454). , , , , JSF ( , ?).

, taglib :

<tag>
    <tag-name>test</tag-name>
    <component>
      <resource-id>
          components/system/test.xhtml
      </resource-id>
    </component>
</tag>

, "", "system/test.xhtml".

+1

, , :

  • http://java.sun.com/jsf/composite/components/system /resources/components/system

  • ,

    http://java.sun.com/jsf/composite/components/system2 /resources/components/system2 ,

    Warning: This page calls for XML namespace http://java.sun.com/jsf/composite/components/system2 declared with prefix y but no taglibrary exists for that namespace.

xmlns:x="http://java.sun.com/jsf/composite/components/system"

, /resources

0

All Articles