Page 1 of 1

Direct to DOM feature in Primefaces?

Posted: 29 Jul 2011, 12:51
by MISS_DUKE
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?

Re: Direct to DOM feature in Primefaces?

Posted: 29 Jul 2011, 13:00
by tandraschko
How is the performance of Direct to DOM rendering?

Re: Direct to DOM feature in Primefaces?

Posted: 29 Jul 2011, 14:19
by cagatay.civici
Not in a million years. You don't want to know what direct to dom does under the hood to achieve this.

Re: Direct to DOM feature in Primefaces?

Posted: 29 Jul 2011, 14:28
by tandraschko
Is there an detailed description available how Direct to DOM works?

Re: Direct to DOM feature in Primefaces?

Posted: 08 Aug 2011, 12:34
by MISS_DUKE
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!

Re: Direct to DOM feature in Primefaces?

Posted: 08 Aug 2011, 13:02
by cagatay.civici
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.

Re: Direct to DOM feature in Primefaces?

Posted: 08 Aug 2011, 13:23
by MISS_DUKE
@optimus.prime

I appreciate your response, it is showing the other side of D2D.

Re: Direct to DOM feature in Primefaces?

Posted: 08 Aug 2011, 13:24
by cagatay.civici
I'm not a native speaker of English but I think there is a saying "every rose has its thorn" :)

Re: Direct to DOM feature in Primefaces?

Posted: 08 Aug 2011, 20:45
by Oleg
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.