myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-4100) Default view pool is enabled for all views by default when cache mode is alwaysRecompile only
Date Wed, 22 Feb 2017 23:28:44 GMT
Leonardo Uribe created MYFACES-4100:
---------------------------------------

             Summary: Default view pool is enabled for all views by default when cache mode
is alwaysRecompile only
                 Key: MYFACES-4100
                 URL: https://issues.apache.org/jira/browse/MYFACES-4100
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.2.12
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe


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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message