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 8715405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:50:10+00:00 2026-06-13T05:50:10+00:00

In a JSF application, the parameter javax.faces.FACELETS_REFRESH_PERIOD can be used to enable/disable automatic reloading

  • 0

In a JSF application, the parameter javax.faces.FACELETS_REFRESH_PERIOD can be used to enable/disable automatic reloading of XHTML files.

I am currently researching the right configuration for production deployments, and accidentally found out that we currently run with FACELETS_REFRESH_PERIOD=1 even in production, which is obviously not a good idea.

This lead to the question: What is the default value for this parameter?

Ideally, I’d like to just omit FACELETS_REFRESH_PERIOD from our production config for simplicity’s sake, and hoped it would use a “safe” default value of -1. However, this does not seem to be the case, because without the parameter, refreshing seems to be enabled (with both Mojarra and MyFaces).

I checked the JSF spec, and while it describes the parameter, it does not give a default. Is this a deliberate omission in the spec?

  • 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-13T05:50:12+00:00Added an answer on June 13, 2026 at 5:50 am

    The default is implementation dependent.

    Given that you’re using Mojarra, you can find the default in the com.sun.faces.config.WebConfiguration class:

    768         FaceletsDefaultRefreshPeriod(
    769               "javax.faces.FACELETS_REFRESH_PERIOD",
    770               "2"
    771         )
    

    (line numbers are from Mojarra 2.0.0)

    The default is thus 2. I can’t find this in any Mojarra documentation. It might be worth to post an issue report to Mojarra guys to better document it.

    MyFaces has according its documentation also a default value of 2.


    Update: From Mojarra 2.2.11, the default value is set to -1 if project stage is Production. See also issue 3792.

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

Sidebar

Related Questions

I am getting this error when ever deploying my jsf application java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config at
Our application is JSF , hibernate & Spring. Currently the url is in following
We currently maintain a JSF application developed using Netbeans 5.5.1 using the Visual Web
In a JSF application, we have the directory hierarchy: webapp xhtml login.xhtml main.xhtml search.xhtml
I am developing a JSF application with JPA(EclipseLink 2.0) and Primefaces. I want to
In my JSF application I am trying to put some conditions in my Command
I have a JSF application that uses mostly Richfaces. I would like to introduce
I try to run jsf application in myeclipse using jboss web server and following
I have a JSF application with several major components and a component tree under
I was trying out a simple JSF application, in which I need to check

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.