Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Beta2
-
Fix Version/s: 2.0.0
-
Component/s: ACE-Components
-
Labels:None
-
Environment:ICEfaces, ACE
Description
A context parameter is required to configure resource loading via the MandatoryResource annotation. Currently, all resources for all components are added, whether those components are used in the application or not. For instance, fileEntry does not require any YUI resources, but is included in the same .jar file as other components that force the loading of these resources.
org.icefaces.mandatoryResourceConfiguration will be a web.xml context parameter as follows:
undefined: all resources will be loaded
empty string: no resources will be loaded
space separated list: named components will have their resources loaded
Activity
Ted Goddard
created issue -
Ted Goddard
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Mark Collette [ mark.collette ] |
Ted Goddard
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.0.0 [ 10230 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee Priority | P1 | |
Assignee | Mark Collette [ mark.collette ] | Ted Goddard [ ted.goddard ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #23371 | Tue Dec 07 17:17:56 MST 2010 | ted.goddard | org.icefaces.mandatoryResourceConfiguration implementation ( |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/renderkit/DOMRenderKit.java
MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/util/EnvUtils.java |
Ted Goddard
made changes -
Salesforce Case | [] | |
Description |
A context parameter is required to configure resource loading via the MandatoryResource annotation. Currently, all resources for all components are added, whether those components are used in the application or not. For instance, fileEntry does not require any YUI resources, but is included in the same .jar file as other components that force the loading of these resources. org.icefaces.mandatoryResourceConfiguration will be a web.xml context parameter as follows: undefined: all resources will be loaded empty string: no resources will be loaded comma separated list: named resources will be loaded |
A context parameter is required to configure resource loading via the MandatoryResource annotation. Currently, all resources for all components are added, whether those components are used in the application or not. For instance, fileEntry does not require any YUI resources, but is included in the same .jar file as other components that force the loading of these resources. org.icefaces.mandatoryResourceConfiguration will be a web.xml context parameter as follows: undefined: all resources will be loaded empty string: no resources will be loaded space separated list: named components will have their resources loaded |
Ted Goddard
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #23389 | Wed Dec 08 15:19:38 MST 2010 | ted.goddard | sample configuration for mandatoryResourceComponent ( |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/samples/ace/showcase/src/main/webapp/WEB-INF/web.xml
|
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P1 |
Tested in ace-showcase with the following web.xml configuration parameter:
<context-param>
<param-name>org.icefaces.mandatoryResourceConfiguration</param-name>
<param-value>org.icefaces.component.sliderentry.SliderEntry org.icefaces.component.datetimeentry.DateTimeEntry</param-value>
</context-param>
Feature was modified to expect a space-separated list rather than comma-separated. Classnames specify which components will have their resources added to every application page. If the component page is visited via a link, the resources will still be loaded for that page. (The only complication arises if a component is added dynamically via Ajax.)