Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2764

Disable facelets reloading for PROJECT_STAGE=Production

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.0.1-SNAPSHOT
    • 2.0.1
    • JSR-314
    • None
    • myfaces trunk

    Description

      During profiling I noticed that org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory.getFacelet(URL) takes some time even in PROJECT_STAGE=Production. Problem is in DefaultFaceletFactory.needsToBeRefreshed(DefaultFacelet) - it returns true (sometimes) even in production. It can be easily solved with javax.faces.FACELETS_REFRESH_PERIOD=-1 but considering PROJECT_STAGE value in this situation is more user friedly.

      Attachments

        1. MYFACES-2764.patch
          2 kB
          Martin Kočí

        Issue Links

          Activity

            People

              Unassigned Unassigned
              markoc50 Martin Kočí
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: