You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Thomas Andraschko (JIRA)" <de...@myfaces.apache.org> on 2018/06/22 13:13:00 UTC

[jira] [Commented] (MYFACES-4227) Dynamic Resource Loading doesn't work

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

Thomas Andraschko commented on MYFACES-4227:
--------------------------------------------

Seems like the following happens:
The new component will correctly be created by Application#createComponent and our ApplicationImpl#_handleResourceDependencyAnnotations + #_handleResourceDependency correctly adds the resource to the viewroot via context.getViewRoot().addComponentResource.


Our PartialViewContextImpl#processRenderResource would also render the diff but it seems that the bridge between "we have a new resource" and "render the new resource" is not called.
It seems that this bridge should be HtmlScriptRenderer#processEvent and the equivalent StylesheetRenderer, but it isn't called.

> Dynamic Resource Loading doesn't work
> -------------------------------------
>
>                 Key: MYFACES-4227
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4227
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-372
>    Affects Versions: 2.3.0, 2.3.1
>            Reporter: Thomas Andraschko
>            Priority: Major
>             Fix For: 2.3.2
>
>
> [https://github.com/martin654/primefaces-test]
> Just run the example via jetty:run
> For MyFaces, you need to exchange Mojarra with MyFaces.
> It works fine in Mojarra but in MyFaces, the "javax.faces.Resource" update is never rendered.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)