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

        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.
        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.
        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: