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

Default view pool is enabled for all views by default when cache mode is alwaysRecompile only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.12
    • 2.2.13
    • None
    • None

    Description

      There is an small bug in the activation of the default view pool in ViewPoolFactory class.

      When org.apache.myfaces.CACHE_EL_EXPRESSIONS is set to "alwaysRecompile". ViewPool feature is enabled, but the default view pool applies to all views that does not have any view pool mapping in faces-config.xml, but only when oamEnableViewPool is set.

      What's happening right now is view pool is automatically enabled for all views by default, and this should be changed to the opposite.

      The reason is "alwaysRecompile" is a EL caching feature by itself that does not require the view pool to work, but the view pool only works well when "alwaysRecompile" is set.

      This part is quite confusing, but the fix needs to be done. It was discovered looking for a solution for MYFACES-4099

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: