-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non queued AJAX requests and ES6 modules #4946
Comments
@varoliver We would love to see something like this. Is this something you can work on? Note it won't make it for 4.0, but with your efforts maybe for 5.0? |
Hi @mnriem Kind regards |
What do you mean for "async" request? actually inside faces.js what I see is:
so basically the request is async from the Mozilla doc:
|
Yes, the requests are async but multiple requests get queued by JSF. |
I'll try to implement this on my forked mojarra! ... I made a PR of my faces.js version but it's still in the air ... :| |
Nice @pizzi80 that would be great. |
@pizzi80 What is the status of this issue? Is the PR complete? |
1. Non-queued AJAX requests We probably need to add a boolean If I'm not mistaken I think this requires a ticket on the Faces API After that, in "faces.js" the "sendRequest" method will skip I'm going to open the ticket to Faces API 2. Support of ES6 modules Interesting... I'm currently developing a new, unified DOM replacement algorithm. Before replacing 300 lines of code I think it's a good idea to have the ajax tests working :) |
@pizzi80 Looks like a spec change here. Should it be tracked there? |
Indeed belongs in jakartaee/faces project.
Please continue in jakartaee/faces#1844.
Please continue in jakartaee/faces#1598. |
Hi,
it would be great if JSF/mojarra would provide following features for modern web development:
Non-queued AJAX requests
I know the reasons why the requests get queued, but the Spec and mojarra should provide
the possibility for parallelization of multiple AJAX requests like primefaces does with async=true.
Of course developers would have to use this feature with care in a stateless/RequestScoped environment.
Support of ES6 modules
If an AJAX response containes inline JS code of type "module"
<script type="module">
it won't get executed. mojarra uses eval for inline JS execution
and eval does not support modules/imports.
It works with primefaces ajax because they directly manipulate the DOM with replaceChild (via jquery)
We have a dependency on primefaces only because of these shortcomings, which is not nice.
Apart from that I think JSF is a nice mature framework.
Thx, kind regards
Oliver
The text was updated successfully, but these errors were encountered: