Direct to DOM feature in Primefaces?
Direct to DOM feature (automatic AJAX, you don't need to specify a region to Ajaxify as we do in Primefaces or Raw JSF) is highlighted as a major feature in Icefaces. Are there any plans to bring this feature to Primefaces in the future?
JSF implementation: Mojarra V2.1.7
JSF component library: Primefaces V3.1.1
Server: GlassFish Open Source Edition V3.1.1 (build 12)
JSF component library: Primefaces V3.1.1
Server: GlassFish Open Source Edition V3.1.1 (build 12)
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
How is the performance of Direct to DOM rendering?
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Not in a million years. You don't want to know what direct to dom does under the hood to achieve this.
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Is there an detailed description available how Direct to DOM works?
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
When a new page is rendered, it is compared with the previous image of the server side object (of the page), and then rendered (by Ajax) only the changed part of the page.
This is automatic Ajax and the idea behind this seems fantastic. It must have been built into the core JSF specification.
I can't find any reasons for anyone hating this idea!
This is automatic Ajax and the idea behind this seems fantastic. It must have been built into the core JSF specification.
I can't find any reasons for anyone hating this idea!
JSF implementation: Mojarra V2.1.7
JSF component library: Primefaces V3.1.1
Server: GlassFish Open Source Edition V3.1.1 (build 12)
JSF component library: Primefaces V3.1.1
Server: GlassFish Open Source Edition V3.1.1 (build 12)
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I don't like it because of the cpu and memory load it brings, keeping old images require additional memory and comparing what has changed in page will eat some of your cpu.
If you define what to update yourself, you have more flexibility and less resource usage.
That's why JSF EG decided current approach in JSF core and PrimeFaces follows that.
If you define what to update yourself, you have more flexibility and less resource usage.
That's why JSF EG decided current approach in JSF core and PrimeFaces follows that.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I'm not a native speaker of English but I think there is a saying "every rose has its thorn"
D2D feature slows the web app down. This is because ICEFaces has a bad performance in heavy multi-user apps (sorry ICEFaces' fans). We don't need this definitely in PrimeFaces.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin
-
- Information
-
Who is online
Users browsing this forum: No registered users and 26 guests