OverviewSince 3.3 The message component renders the first Faces message for a specific component.
Styling is done by predefined jQuery classes in theme stylesheets:
You can use the style and styleClass attributes to override the styles. Getting Started<ace:textEntry id="firstNameInput" value="#{messageBean.firstName}" label="First Name" labelPosition="left"> <ace:ajax event="blur" render="firstNameMsg" listener="#{messageBean.blurListener}"/> </ace:textEntry> <ace:message id="firstNameMsg" for="firstNameInput" initEffect="bounce" changeEffect="explode"/> Attributes
for: Identifier of the component for which to render error messages. style: CSS style(s) to be applied when this component is rendered. styleClass: Space-separated list of CSS style class(es) to be applied when this element is rendered. Event ListenersClient Behavior EventsJavaScript 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: alert. CSS ClassesThe following markup represents the basic HTML structure of the component and the CSS classes it uses. <span class="ui-faces-message [user defined classes]" style="[user defined styles]"> <span class=" ui-widget ui-corner-all [ui-state-highlight | ui-state-error]"> <span class="ui-faces-message-icon"> <span class="ui-icon ui-icon-info"></span> </span> <span class="ui-faces-message-text">Message</span> </span> </span> Known IssuesNone. Additional Resources |
Message
© Copyright 2021 ICEsoft Technologies Canada Corp.