Direct to DOM feature in Primefaces?

UI Components for JSF
Post Reply
User avatar
MISS_DUKE
Posts: 273
Joined: 08 Aug 2010, 05:52

29 Jul 2011, 12:51

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)

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

29 Jul 2011, 13:00

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Jul 2011, 14:19

Not in a million years. You don't want to know what direct to dom does under the hood to achieve this.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

29 Jul 2011, 14:28

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

User avatar
MISS_DUKE
Posts: 273
Joined: 08 Aug 2010, 05:52

08 Aug 2011, 12:34

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!
JSF implementation: Mojarra V2.1.7
JSF component library: Primefaces V3.1.1
Server: GlassFish Open Source Edition V3.1.1 (build 12)

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Aug 2011, 13:02

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.

User avatar
MISS_DUKE
Posts: 273
Joined: 08 Aug 2010, 05:52

08 Aug 2011, 13:23

@optimus.prime

I appreciate your response, it is showing the other side of D2D.
JSF implementation: Mojarra V2.1.7
JSF component library: Primefaces V3.1.1
Server: GlassFish Open Source Edition V3.1.1 (build 12)

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

08 Aug 2011, 13:24

I'm not a native speaker of English but I think there is a saying "every rose has its thorn" :)

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

08 Aug 2011, 20:45

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests