Note that there are some explanatory texts on larger screens.

plurals
  1. POPerformance issue in function restoreView (JSF Lifecycle)
    primarykey
    data
    text
    <p>Our application is having issue with rendering time on various part. We have been able to pin point the performance issue with a profiler (YourKit Java Profiler) within the JSF restoreView phase (lifecycle). Since, we use a lot of components in some pages the rendering of the tree must be the source of the problem. <a href="https://stackoverflow.com/questions/7190225/jsf-view-getting-rebuild-on-each-ajax-request">Some question on stackoverflow</a> looks pretty much like what we are dealing. Also, we can see the same slow speed in dev and production.</p> <p>Some specs: </p> <ul> <li>MyFaces 2.1.7</li> <li>javax.el 2.1.0</li> </ul> <p>Profiler (CTRL+SCROLL to see details): <img src="https://i.stack.imgur.com/c978A.png" alt="enter image description here"></p> <p>We are trying to find solutions. So far, we came up with those:</p> <ul> <li>Use less composition/components (which is not that great, because we liked to make generic component).</li> <li>We could also go into JSF stateless mode.</li> <li>Find the actual problem with JSF (IN DEEP).</li> <li>Recently, we found out that some JUEL library (expression language) could greatly <a href="http://forum.primefaces.org/viewtopic.php?f=3&amp;t=7453" rel="nofollow noreferrer">increase the rendering time</a>. </li> </ul> <p>I've been dealing with making JUEL works with Spring 3 (with OSGI). Here's the spec: <a href="http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.juel/2.1.3_1" rel="nofollow noreferrer">JUEL 2.1.3.1 bundle</a> (note: this bundle use a different version of javax.el than the one I use in my application will that cause clash?)</p> <p>I have found another maven repo which only does <a href="http://mvnrepository.com/artifact/de.odysseus.juel/juel-impl/2.2.6" rel="nofollow noreferrer">Juel Implementation and a more recent version</a>.</p> <p><strong>Update:</strong> Found a solution for javax.el clashing, since there was a lot of problems in the juel-api (because it's export his own javax.el) I modified the manifest with that line <strong><em>Fragment-Host: javax.el</em></strong> to eliminate it.</p> <p>Is there a configuration/set up to enable better performance? Or, how to you actually configure JUEL with MyFaces and Spring?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload