ICEfaces
  1. ICEfaces
  2. ICE-6923

Change ICEfaces Sample Apps. to use PROJECT_STAGE="Production", and specify an extended resource "max-age" for improved caching

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1-Beta, 3.0, EE-2.0.0.GA_P01
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces 2 Sample apps.
    • Assignee Priority:
      P2
    • Affects:
      Sample App./Tutorial

      Description

      This purpose of this JIRA is to improve the out-of-box experience for developers using the ICEfaces 2 sample apps. included in the download bundles with each release. Currently, we set all sample apps. to use JSF 2 PROJECT_STAGE="Development", which is useful to us in detecting possible issues earlier, but results in the apps. running with lower performance settings within JSF, which could negatively affect users judging ICEfaces 2 performance characteristics, etc. based on incorrect assumptions.

      This JIRA consists of the following sub-tasks for each sample app.:

      1. Change web.xml to specify PROJECT_STAGE="Production", instead of "Development". Also, a comment should be added to suggest that changing this setting to Development may be useful to folks who are currently in development mode on their ICEfaces 2 project. Although "Production" is the JSF 2 default setting for this, having it declared is necessary to enable QA regression testing harness to easily update it to "Development" as needed for ongoing regression testing. In addition, it raises user awareness of the settings existence to ICEfaces users.

      2. Change the web.xml to specify an extended resource "max-age" for improved resource caching. By default, resources are only cached for 10 mins. This should be extended via specifying the "com.sun.faces.defaultResourceMaxAge" parameter and setting it to 1 week instead.

        Activity

        Ken Fyten created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s EE-2.0.0.GA_P01 [ 10271 ]
        Fix Version/s 2.1 [ 10241 ]
        Affects [Sample App./Tutorial]
        Assignee Ken Fyten [ ken.fyten ]
        Hide
        Ken Fyten added a comment -

        Need to notify QA once this change has been committed.

        Show
        Ken Fyten added a comment - Need to notify QA once this change has been committed.
        Ken Fyten made changes -
        Salesforce Case []
        Assignee Priority P2
        Assignee Ken Fyten [ ken.fyten ] Jack van Ooststroom [ jack.van.ooststroom ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24951 Tue Jul 05 15:52:54 MDT 2011 jack.van.ooststroom Fixed JIRA ICE-6923 : Change ICEfaces Sample Apps. to use PROJECT_STAGE='Production', and specify an extended resource 'max-age' for improved caching
        Files Changed
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/ace/showcase/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/core/basic/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/compat/auctionMonitor/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/core/auction/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/compat/component-showcase/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/compat/compat-basic/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/ace/showcase-portlet/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/branches/icefaces-2.0.x-maintenance/icefaces/samples/core/chat/src/main/webapp/WEB-INF/web.xml
        Jack Van Ooststroom made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Jack Van Ooststroom added a comment -

        The following files have been updated:

        ace/showcase/src/main/webapp/WEB-INF/web.xml
        ace/showcase-portlet/src/main/webapp/WEB-INF/web.xml
        compat/auctionMonitor/src/main/webapp/WEB-INF/web.xml
        compat/compat-basic/src/main/webapp/WEB-INF/web.xml
        compat/component-showcase/src/main/webapp/WEB-INF/web.xml
        core/auction/src/main/webapp/WEB-INF/web.xml
        core/basic/src/main/webapp/WEB-INF/web.xml
        core/chat/src/main/webapp/WEB-INF/web.xml

        Added the following:

        <context-param>
        <param-name>com.sun.faces.defaultResourceMaxAge</param-name>
        <param-value>604800000</param-value>
        </context-param>

        <!--
        Changing this context parameter to Development may be useful during
        development stage to detect potential issues earlier, but this results in
        application running with lower performance settings within JSF.
        -->
        <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Production</param-value>
        </context-param>

        Marking this one as FIXED.

        Show
        Jack Van Ooststroom added a comment - The following files have been updated: ace/showcase/src/main/webapp/WEB-INF/web.xml ace/showcase-portlet/src/main/webapp/WEB-INF/web.xml compat/auctionMonitor/src/main/webapp/WEB-INF/web.xml compat/compat-basic/src/main/webapp/WEB-INF/web.xml compat/component-showcase/src/main/webapp/WEB-INF/web.xml core/auction/src/main/webapp/WEB-INF/web.xml core/basic/src/main/webapp/WEB-INF/web.xml core/chat/src/main/webapp/WEB-INF/web.xml Added the following: <context-param> <param-name>com.sun.faces.defaultResourceMaxAge</param-name> <param-value>604800000</param-value> </context-param> <!-- Changing this context parameter to Development may be useful during development stage to detect potential issues earlier, but this results in application running with lower performance settings within JSF. --> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Production</param-value> </context-param> Marking this one as FIXED.
        Jack Van Ooststroom made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Link This issue blocks ICE-7037 [ ICE-7037 ]
        Hide
        Ken Fyten added a comment -

        Jack, you missed committing these changes to the icefaces2/trunk (fix target 2.1) also.

        Show
        Ken Fyten added a comment - Jack, you missed committing these changes to the icefaces2/trunk (fix target 2.1) also.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24996 Mon Jul 11 06:46:20 MDT 2011 jack.van.ooststroom Fixed JIRA ICE-6923 : Change ICEfaces Sample Apps. to use PROJECT_STAGE='Production', and specify an extended resource 'max-age' for improved caching
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/core/chat/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/compat/compat-basic/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/compat/component-showcase/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/ace/showcase/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/core/basic/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/compat/auctionMonitor/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/ace/showcase-portlet/src/main/webapp/WEB-INF/web.xml
        Commit graph MODIFY /icefaces2/trunk/icefaces/samples/core/auction/src/main/webapp/WEB-INF/web.xml
        Hide
        Jack Van Ooststroom added a comment -

        Committed to the trunk now as well. Marking this one as FIXED again.

        Show
        Jack Van Ooststroom added a comment - Committed to the trunk now as well. Marking this one as FIXED again.
        Jack Van Ooststroom made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 2.1-Beta [ 10291 ]
        Fix Version/s 2.1 [ 10241 ]
        Ken Fyten made changes -
        Fix Version/s 3.0 [ 10241 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jack Van Ooststroom
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: