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

Leonardo Uribe commented on MYFACES-4098:
-----------------------------------------

Committed part 1 iterators for each ResourceLoader instance. Implementing part 
2 which is the Iterator that group all of them together, with the same rules 
createViewResource(...) works. This is the black box test done to check how 
this feature works:

Stream<String> stream = facesContext.getApplication()
                .getResourceHandler().getViewResources(facesContext, "/", 2);
stream.forEach(s -> {
        System.out.println(s);
});

/helloWorld.xhtml
/home.xhtml
/page2.xhtml
/converter/index.xhtml
/managedproperty/managedproperty1.xhtml
/managedproperty/managedproperty1_1.xhtml
/model/facesdatamodel1.xhtml
/websocket/clockAjax.xhtml
/websocket/testws.xhtml
/websocket/websocket.xhtml



Stream<String> stream = facesContext.getApplication()
                .getResourceHandler().getViewResources(facesContext, "/", 1);
stream.forEach(s -> {
        System.out.println(s);
});


/helloWorld.xhtml
/home.xhtml
/page2.xhtml


Stream<String> stream = 
facesContext.getApplication().getResourceHandler().getViewResources(
                facesContext, "/websocket", 2, 
ResourceVisitOption.TOP_LEVEL_VIEWS_ONLY);
stream.forEach(s -> {
        System.out.println(s);
});

/websocket/clockAjax.xhtml
/websocket/testws.xhtml
/websocket/websocket.xhtml

Stream<String> stream = 
facesContext.getApplication().getResourceHandler().getViewResources(
                facesContext, "/websocket/", 2, 
ResourceVisitOption.TOP_LEVEL_VIEWS_ONLY);
stream.forEach(s -> {
        System.out.println(s);
});

/websocket/clockAjax.xhtml
/websocket/testws.xhtml
/websocket/websocket.xhtml

> Implement ResourceHandler.getViewResources(...)
> -----------------------------------------------
>
>                 Key: MYFACES-4098
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4098
>             Project: MyFaces Core
>          Issue Type: New Feature
>          Components: JSR-372
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>




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

Reply via email to