[
https://issues.apache.org/jira/browse/MYFACES-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16164815#comment-16164815
]
Leonardo Uribe commented on MYFACES-4141:
-----------------------------------------
About update scripts/stylesheet resources, the spec says this in the javascript
documentation of jsf.ajax.response:
If an update element is found in the response with the identifier
javax.faces.Resource:
{code:xml}
<update id="javax.faces.Resource">
<![CDATA[...]]>
</update>
{code}
append any element found in the CDATA contents which is absent in the document
to the document's head section.
That's it. There is no update of the view using websockets.
The code that trigger the update was done before jsf 2.3 spec, and it aims to
detect added resources in dynamic sections of a view. That's the reason why
this doesn't seem to be implemented, but it is there. Try a dynamic ui:include
src="#{...}" with a page with a resource and it will work.
> JSF 2.3 Spec Issue 1436 - MyFaces Implementation requires Server Push
> functionality
> -----------------------------------------------------------------------------------
>
> Key: MYFACES-4141
> URL: https://issues.apache.org/jira/browse/MYFACES-4141
> Project: MyFaces Core
> Issue Type: Bug
> Components: JSR-372
> Affects Versions: 2.3.0-beta
> Reporter: Paul Nicolucci
> Fix For: 2.3.0
>
>
> The following spec issue does not look to be implemented in the MyFaces
> 2.3.0-beta: https://github.com/javaee/javaserverfaces-spec/issues/1436
> The following text was added to the JSF 2.3 specification section 2.2.6
> "Render Response":
> If running on a container that supports Servlet 4.0 or later, after any
> dynamic component manipulations have been
> completed, any resources that have been added to the UIViewRoot, such as
> scripts, images, or stylesheets, and any
> inline images, must be pushed to the client using the Servlet Server Push
> API. All of the pushes must be started
> before any of the HTML of the response is rendered to the client.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)