ICEfaces
  1. ICEfaces
  2. ICE-10710

Showcase - Setting mandatoryResourceConfiguration does not pre-load resources

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P03
    • Fix Version/s: 4.1, EE-3.3.0.GA_P04
    • Component/s: Framework, Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces EE 3.3

      Description

      When setting the mandatoryResourceConfiguration context param in the Showcase demo web.xml, the resource tied to the component is not pre-loaded on the page.

      For example when using the following:

      <context-param>
              <param-name>org.icefaces.mandatoryResourceConfiguration</param-name>
              <param-value>fileEntry</param-value>
          </context-param>

      The fileEntry.js.jsf resource is not in the head tag.

        Activity

        Hide
        Mircea Toma added a comment -

        It seems that the _ mandatoryResourceConfiguration_ defined in icecore:config will override what's defined in the web.xml. In the case of showcase application the dataTable is configured as mandatory resource in the main template which will block any mandatory resource defined in the context parameter.

        Show
        Mircea Toma added a comment - It seems that the _ mandatoryResourceConfiguration_ defined in icecore:config will override what's defined in the web.xml . In the case of showcase application the dataTable is configured as mandatory resource in the main template which will block any mandatory resource defined in the context parameter.
        Hide
        Mircea Toma added a comment -

        Modified EnvUtils.getMandatoryResourceConfig method to join the sets of mandatory resources defined by the context parameter and icecore:config tag.

        Show
        Mircea Toma added a comment - Modified EnvUtils.getMandatoryResourceConfig method to join the sets of mandatory resources defined by the context parameter and icecore:config tag.
        Hide
        Carmen Cristurean added a comment -

        Verified on ICEfaces4 Trunk and 3.3 maintenance branch revision 45009 in IE11, Chrome43, Firefox34.

        Show
        Carmen Cristurean added a comment - Verified on ICEfaces4 Trunk and 3.3 maintenance branch revision 45009 in IE11, Chrome43, Firefox34.
        Hide
        Carmen Cristurean added a comment -

        Added QA test application:
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/ICE-10710 (for ICEfaces4 trunk)
        http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/ICE-10710 (for 3.3 maintenance branch)

        Testing on the 3.3 maintenance branch fails when using an <icecore:config mandatoryResource="..."> tag on the page, as the corresponding resources are not loaded (all browsers).
        This can be reproduced with the QA test app for 3.3 maintenance branch, on the /test.jsf demo page.

        Show
        Carmen Cristurean added a comment - Added QA test application: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/ICE-10710 (for ICEfaces4 trunk) http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces2/Sparkle/Manual/ICE-10710 (for 3.3 maintenance branch) Testing on the 3.3 maintenance branch fails when using an <icecore:config mandatoryResource="..."> tag on the page, as the corresponding resources are not loaded (all browsers). This can be reproduced with the QA test app for 3.3 maintenance branch, on the /test.jsf demo page.
        Hide
        Mircea Toma added a comment - - edited

        Tested with success the 3.3 maintenance branch. Both ace:slideEntry and ace:dateTimeEntry require "util/ace-components.js" and "util/ace-jquery.js" files which are indeed referenced after navigating to the second page. When using icecore:config tag the mandatory resources are read and enforced only when the page is parsed (unlike the context parameter which is read at application load time).

        Show
        Mircea Toma added a comment - - edited Tested with success the 3.3 maintenance branch. Both ace:slideEntry and ace:dateTimeEntry require "util/ace-components.js" and "util/ace-jquery.js" files which are indeed referenced after navigating to the second page. When using icecore:config tag the mandatory resources are read and enforced only when the page is parsed (unlike the context parameter which is read at application load time).

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: