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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #25345 Mon Aug 29 15:27:30 MDT 2011 ted.goddard icecore:config mandatoryResource (ICE-7160)
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/facelets/tag/icefaces/core/ConfigHandler.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/util/EnvUtils.java
        Commit graph MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/event/BridgeSetup.java
        Ted Goddard created issue -
        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.
        Ken Fyten made changes -
        Field Original Value New Value
        Salesforce Case []
        Fix Version/s 2.1 [ 10241 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Ken Fyten made changes -
        Assignee Ted Goddard [ ted.goddard ]
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1-Beta [ 10291 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: