• Settings
    • Locale
    • Change the locale of the datepicker, schedule and client side validation messages.

      Language
      English
      English
      English
      French
      German
      German
      German
      Italian
      Korean
      Spanish
      Catalan
      Dutch
      Portuguese
      Portuguese
      Arabic
      Arabic
      Bulgarian
      Bangla
      Bosnian
      Czech
      Greek
      Estonian
      Persian
      Finnish
      Danish
      Hindi
      Indonesian
      Icelandic
      Croatian
      Japanese
      Hungarian
      Hebrew
      Georgian
      Central Kurdish
      Khmer
      Kyrgyz
      Kazakh
      Lithuanian
      Latvian
      Malay
      Norwegian
      Polish
      Romanian
      Russian
      Slovak
      Slovenian
      Serbian
      Serbian
      Swedish
      Thai
      Turkish
      Ukrainian
      Uzbek
      Vietnamese
      Chinese
      Chinese
  • Resources

StaticMessage

StaticMessage component can be used to display a message without the use of a FacesMessages.

StaticMessage Tag Documentation

Display a message without the use of a FacesMessage.

NameTypeRequiredDefaultDescription
id String false generated Unique identifier of the component in a namingContainer.
rendered boolean false true Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding UIComponent false generated An EL expression referring to a server side UIComponent instance in a backing bean.
widgetVar String false generated ('widget_' + componentClientId) Name of the client side widget.
closable boolean false false Adds a close icon to hide the message.
detail String false The message detail.
display String false both Defines display mode, valid values are text, icon and both(default).
escape boolean false true Defines whether html would be escaped or not.
icon String false severity The icon to display.
severity String true The severity of the message: success, info, error, warn, fatal.
style String false Inline style of the component.
styleClass String false Style class of the component.
summary String false The message summary.
Loading...
Tag DocumentationNew DocumentationNew Documentation JSDoc
Basic
SUCCESSMessage Content
INFOMessage Content
WARNMessage Content
ERRORMessage Content
FATALMessage Content
Closable
WarningThis is a static message that can be closed by the user.
Custom Icon
BoltThis is a static message with a custom icon.

Usage


<p:growl id="growl"/>

<div class="card">
    <h5>Basic</h5>
    <div class="grid">
        <div class="col-12 md:col-4">
            <p:staticMessage severity="success" summary="SUCCESS" detail="Message Content" style="width: 100%"/>
        </div>
        <div class="col-12 md:col-4">
            <p:staticMessage severity="info" summary="INFO" detail="Message Content" style="width: 100%"/>
        </div>
        <div class="col-12 md:col-4">
            <p:staticMessage severity="warn" summary="WARN" detail="Message Content" style="width: 100%"/>
        </div>
        <div class="col-12 md:col-4">
            <p:staticMessage severity="error" summary="ERROR" detail="Message Content" style="width: 100%"/>
        </div>
        <div class="col-12 md:col-4">
            <p:staticMessage severity="fatal" summary="FATAL" detail="Message Content" style="width: 100%"/>
        </div>
    </div>

    <h5>Closable</h5>
    <p:staticMessage severity="warn" summary="Warning" style="width: 100%"
                     detail="This is a static message that can be closed by the user."
                     closable="true" rendered="#{not messagesView.closed}">
        <p:ajax event="close" listener="#{messagesView.onClose()}" update="growl"/>
    </p:staticMessage>

    <h5>Custom Icon</h5>
    <p:staticMessage severity="success" summary="Bolt" icon="pi pi-bolt" style="width: 100%"
                     detail="This is a static message with a custom icon.">
    </p:staticMessage>
</div>