Details
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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Wiki docs for iceconfig need to be updated for this new 2.1 feature.