[ 
https://issues.apache.org/jira/browse/MYFACES-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15929246#comment-15929246
 ] 

Leonardo Uribe commented on MYFACES-4103:
-----------------------------------------

Finally I enabled this configuration in faces-config.xml as a 
faces-config-extension:

{code:xml}
    <faces-config-extension>
        <facelets-template-mapping>
            <url-pattern>/site_layout.xhtml</url-pattern>
        </facelets-template-mapping>
    </faces-config-extension>
{code}

In this way, it is possible to identify the files that are templates and should 
be excluded from getViews(...) calculation if required. This is useful when 
there is a template inside a resource library contract and you don't want the 
template or composite component file to be included in the calculation.

With these changes, this issue can be closed as fixed. I tried to see if we 
needed the compiler to detect composite components automatically or templates, 
but this requires parse every file. This is time consuming and not very 
precise. The exclusion option defining which files are templates looks better.

> Implement ViewHandler.getViews(...)
> -----------------------------------
>
>                 Key: MYFACES-4103
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4103
>             Project: MyFaces Core
>          Issue Type: New Feature
>          Components: JSR-372
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.3.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to