ICEfaces
  1. ICEfaces
  2. ICE-7160

per-view mandatoryResource configuration

    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
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description


      The mandatoryResourceConfiguration parameter allows the application to list which component resources are mandatory:

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

      By default, all components in any .jar file in the application will have their required resources loaded on each page (whether the component appears on that page or not). This guarantees that every component will function correctly even if it is added dynamically (such as via ui:include) but potentially introduces a cost of loading unused JavaScript.

      Some applications, particularly this with mobile and desktop pages, may make use of substantially different components on different groups of pages. For this it is useful to specify the mandatoryResource configuration on a per-page basis (or in a page template for a group of pages) such as:

          <icecore:config mandatoryResource="org.icefaces.ace.component.tab.TabSet" />

      or


          <icecore:config mandatoryResource="none" />

        Activity

        Hide
        Ken Fyten added a comment -

        Wiki docs for iceconfig need to be updated for this new 2.1 feature.

        Show
        Ken Fyten added a comment - Wiki docs for iceconfig need to be updated for this new 2.1 feature.

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: