[
https://issues.apache.org/jira/browse/MYFACES-4141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16285196#comment-16285196
]
Thomas Andraschko commented on MYFACES-4141:
--------------------------------------------
Talked with Arjan about this topic:
Arjan:
Servlet push is here intended to slightly speed up the process. The idea is
that the server pushes hints of what resources the document/view
needs, en the client can request them (if it doesn't have them already)
before the main document even starts being parsed.
Ed Burns mentioned this as well in one of his early Servlet 4 presentations.
Me:
Oh, thats a good hint!
How do you ensure that e.g. a script is loaded before the update-nodes are
processed?
I think it could be quite tricky!
Arjan:
The idea is that the hint is send when the server processes the component
tree and discovers which resources the client should *eventually* load.
But it's not about guarantees that the script is loaded at some point. Just
the hint that the client will do a request (at some point).
> 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
>
> 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)