[ 
https://issues.apache.org/jira/browse/MYFACES-3822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Leonardo Uribe reopened MYFACES-3822:
-------------------------------------


Doing some last minute review I found this param, which it is also not used:

org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE

The objective of that param was to avoid discard views after some limit, adding 
it as a soft or weak reference. 

The reasons why this parameter should be deprecated are:

- It does not have any effect on a clustered environment, because if the 
session is moved to another instance the session is serialized and 
deserialized, losing the values.
- Long time ago, the size of the views in session was big, but now it has been 
reduced significantly. It is better to just increase the number of views stored 
in session than use this parameter.



> General cleanup and remove unused web config params
> ---------------------------------------------------
>
>                 Key: MYFACES-3822
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3822
>             Project: MyFaces Core
>          Issue Type: Task
>          Components: JSR-344
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>             Fix For: 2.2.0
>
>
> This issue includes:
> - Remove unused classes
> - Refactor and remove duplicate code
> - Move utility code from impl to shared
> This issue also includes remove unused params like:
> org.apache.myfaces.PRETTY_HTML  
> Reason : never worked well, modern browsers has support for debugging, makes 
> rendering slow.
> org.apache.myfaces.ALLOW_JAVASCRIPT
> Reason: JSF 2  and upper versions require javascript. Now it is no longer 
> optional, it is mandatory for JSF applications.
> org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE
> Reason: JSF 2  and upper versions require javascript. Now it is no longer 
> optional, it is mandatory for JSF applications. Inline rendering is no longer 
> required.
> org.apache.myfaces.VIEWSTATE_JAVASCRIPT
> Reason: Never worked.
> org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS
> Reason: Fix for MyFaces 1.2 state saving style in 2.0/2.1 . No need to 
> support it anymore
> org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS
> Reason: JSF 2.2 specify state saving should use visit tree call. No need to 
> make it optional.
> org.apache.myfaces.ERROR_HANDLER
> Reason: deprecated by JSF 2.0 ExceptionHandler



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to