Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:16:31+00:00 2026-06-07T13:16:31+00:00

JSF2.0 is an amazing web framework; While Rails/DJango/Play all basically use Templates with variable

  • 0

JSF2.0 is an amazing web framework; While Rails/DJango/Play all basically use Templates with variable substitution (basicaly JSP), JSF2.0 is more biased to be a component based framework like Tapestry, GWT, and Wicket.

JSF has linear degrading performance with the complexity of your pages however. So after reading a fascinating article here:
http://industrieit.com/blog/2011/11/stateless-jsf-high-performance-zero-per-request-memory-overhead I had a few questions.

First, the author says that the majority of the time in JSF lifecycle is spent in buildView(). How would one profile this on a particular app, specifically, one running in Mojarra?

Second, would liberal use of f:ajax execute="" help with buildView() performance? Does the executeattribute cut down on the amount of work that buildView() has to do?

Finally, on a full page navigation, is there an equivalent of f:ajax that could say “only execute the following components while restoring the current view”? Is this nonsensical?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:16:32+00:00Added an answer on June 7, 2026 at 1:16 pm
    1. So it turns out it’s a tad difficult to profile this in Mojarra. However, MyFaces is pretty easy… Simple point your profiler at LifeCycleImpl.

    2. On MyFaces, setting execute properly turns out to make huge performance gains. On my machine, buildView() boilerplate takes about 8ms. There is a linear cost added to that base for everyone component that’s processed in f:ajax execute=. I added 10,000 h:outputText in a ui:repeat surrounded by ui:fragment id="fragment". When I added fragment to the f:ajax execute= I went from 8ms response time to 45ms response time. The lesson here is to only set f:ajax execute= to only execute your input components and f:ajax render= only your h:message components.

    3. The OmniFaces cache component essentially does this, but a little broader scope.

    I still hope someone can chime in with more scientific answers 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have JSF2.0 in Tomcat6.0 , need to initialize a ApplicationScope Bean while web
I am using jsf2.0 with primefaces.My application was working fine with all browsers includes
I use jsf2.0 and java ee6 on a JBoss AS 7 i have a
I use Spring Security 3 and JSF2 Primefaces. Then, I create a index.xhtml for
Is it possible to use tiles in JSF2.0? I am planning for migration of
i want to use jQuery to sync values of JSF2 components. We are using
I am using Primefaces and JSF2 . All my .xhtml files are dumped in
I use Spring Security 3 in my JSF2 webapp. I have a security rule
I have written a jsf2 (cdi) web-application, using jQuery, a syntaxhighlighting script lib. On
In JSF2 we can use parameters in EL, which is great. However, I don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.