user652158
user652158

Reputation:

Performance of JSF Composite components

Since a few weeks we have performance problems in our web applications. First we thought the problems belongs to large DOM. Large DOM isn´t really good but thats not the main perfomance problem.

The problem are the composite components. The last weeks we developed core composite components to reduce code redundancy and have centralized places for changes. We replaced each individual implementation within our application(s) with the composite component.

First test case: We´ve created a single page with a commandButton, a outputText and 50 composite components that contains a p:dialog. Click on the button just updates the outputText component (Ajax). The update takes about 1.5 seconds.

Second test: Same page with commandButton and outputText component. Instead of using the composite components we´ve added the p:dialogs directly to the page. The update takes 0.06 seconds.

Is there something wrong with using composite components? I can´t find similar threads that are related to performance problems with composite components.

Upvotes: 3

Views: 927

Answers (1)

Sam
Sam

Reputation: 695

There were some performance bugs in Mojarra version up to 2.1.21, so use myfaces, until mojarra bugs get fixed, For more info visit http://blog.oio.de/2013/05/06/jsf-performance-tuning/

Upvotes: 1

Related Questions