OverviewSince 3.3 The themeSelect component can be used to dynamically change the currently used ACE ThemeRoller theme in the application. It overrides the initial/default theme set by a context param as detailed in http://www.icesoft.org/wiki/display/ICE/ace.theme, which also describes the location and naming of the theme stylesheet files.
Getting Started<ace:themeSelect value="#{navigationModel.theme}">
The list will be automatically populated with the supported Themeroller themes found in the application's classpath. Attributes
value: the name of the theme as described in the link in the Overview above. Note: the value "none" will have no effect and "sam" will be used. Event Listeners
Client Behavior Events
JavaScript APIICEfaces 3.xThe client side component object is exposed through the global variable name specified in the widgetVar attribute. ICEfaces 4+The "widgetVar" attribute on the ACE components has been removed in ICEfaces 4 and in its place a new "ice.ace.instance()" client JavaScript object lookup API has been introduced. The reason for this change is to enable lazy-initialization of the ACE component JavaScript objects to improve runtime performance and reduce browser memory use. var widget = ice.ace.instance('frm:componentId);
Keyboard and ARIA SupportThe following ARIA roles are supported: listbox. CSS ClassesThe following markup represents the basic HTML structure of the component and the CSS classes it uses. <span class="ui-select-theme [user defined classes]"> <select class="ui-widget ui-state-default ui-state-optional" style="[user defined styles]"> <!-- option elements go here... --> </select> </span> Default ThemeThe theme specified in the org.icefaces.ace.theme context parameter will be used as the theme for the current user, whenever the value of this component is null. If the value of this context parameter is null as well, then the sam theme will be used by default. If the value of this parameter is none, then no theme will be used at all. Known IssuesNone. Additional Resources |
ThemeSelect
© Copyright 2021 ICEsoft Technologies Canada Corp.