OverviewWhen using the ACE Components and specific ICE Components on your page it may be necessary to pre-load component resources into the HEAD during the initial page load in order to ensure proper component execution. Specifically, in cases where the component is not present on the initial page load, but is later added to the page dynamically via a partial-page-update. When using the ACE Components on your page it may be necessary to pre-load certain component resources during the initial page load in order to ensure proper component execution. Specifically, in cases where the component is not present on the initial page load, but is added to the page later dynamically. This is required as it is not possible to add resources to the head dynamically in JSF 2. For example, you may have an ACE component that is included on an ace:tabPane that is not initially rendered when the page is loaded, but is later rendered to the page via a dynamic Ajax update. In these cases the necessary JavaScript resources for the component may not be added to the page resulting in a none-functional component. To ensure the all required resources are present on the page during the initial page load for components that are later added to the page dynamically one of the following mandatoryResource configuration techniques should be used.
Application ScopeThe org.icefaces.mandatoryResourceConfiguration context-parameter may be set to one of three values: none, all, or a space delimited list of components.
For example, to pre-load resources for sliderEntry and dateTimeEntry: <context-param> <param-name>org.icefaces.mandatoryResourceConfiguration</param-name> <param-value>sliderEntry dateTimeEntry</param-value> </context-param> Page ScopeThis feature can also be controlled on a per-page basis using the <ice:config> tag and setting the desired attribute.
<icecore:config mandatoryResource="sliderEntry dateTimeEntry" />
See the documentation on the <ice:config> tag for additional information.
|
mandatoryResourceConfiguration
© Copyright 2021 ICEsoft Technologies Canada Corp.