ICEfaces
  1. ICEfaces
  2. ICE-6407

Inconsistent caching of JavaScript files with portlets

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0.0
    • Component/s: Documentation, Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2 portlet portal portletfaces

      Description

      Currently, caching of various JavaScript files causes problem when running in portlets. The PortletFaces bridge has code to deal with this:



      but is only applying this logic to jsf.js and bridge.js. We need to include the other ICEfaces 2 files that can be loaded (icepush.js, compat.js, icefaces-compat.js).

        Activity

        Hide
        Deryk Sinotte added a comment -

        The code has been changed in the PortletFaces Bridge but we don't have an official release from Neil so we'll be building and shipping our own with the changes included:

        Show
        Deryk Sinotte added a comment - The code has been changed in the PortletFaces Bridge but we don't have an official release from Neil so we'll be building and shipping our own with the changes included:
        Hide
        Deryk Sinotte added a comment -

        The related JIRA in the PortletFaces Bridge system is: http://jira.portletfaces.org/browse/BRIDGE-48.

        The updated release will be called portletfaces-bridge-2.0.0-BETA3a.jar.

        Show
        Deryk Sinotte added a comment - The related JIRA in the PortletFaces Bridge system is: http://jira.portletfaces.org/browse/BRIDGE-48 . The updated release will be called portletfaces-bridge-2.0.0-BETA3a.jar.
        Hide
        Deryk Sinotte added a comment -

        Checked in the custom build.

        Show
        Deryk Sinotte added a comment - Checked in the custom build.
        Hide
        Deryk Sinotte added a comment -

        It should be noted that the following context-parameter should be set when running portlets to avoid having some random data appended to the .js file URLs. The cache prevention is handled directly in the PortletFaces bridge for now.

        <context-param>
        <param-name>org.icefaces.uniqueResourceURLs</param-name>
        <param-value>false</param-value>
        </context-param>

        Show
        Deryk Sinotte added a comment - It should be noted that the following context-parameter should be set when running portlets to avoid having some random data appended to the .js file URLs. The cache prevention is handled directly in the PortletFaces bridge for now. <context-param> <param-name>org.icefaces.uniqueResourceURLs</param-name> <param-value>false</param-value> </context-param>

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: