## Uses of Class
javax.faces.application.FacesMessage

- Packages that use FacesMessage
  Package | Description
  --- | ---
  javax.faces.component | Fundamental APIs for user interface components.
  javax.faces.context | Classes and interfaces defining per-request state information.
  javax.faces.convert | Contains classes and interfaces defining converters.
  javax.faces.validator | Interface defining the validator model, and concrete validator implementation classes.

- - ### Uses of FacesMessage in javax.faces.component

    Methods in javax.faces.component that return FacesMessage
    Modifier and Type | Method and Description
    --- | ---
    `FacesMessage` | UpdateModelException.`getFacesMessage()` Return the `FacesMessage` passed to the constructor.

    Constructors in javax.faces.component with parameters of type FacesMessage
    Constructor and Description
    `UpdateModelException(FacesMessage facesMessage, Throwable cause)` Store the argument `facesMessage` so it may be returned from `UpdateModelException.getFacesMessage()` and pass the argument `cause` to the super constructor.

  - ### Uses of FacesMessage in javax.faces.context

    Methods in javax.faces.context that return types with arguments of type FacesMessage
    Modifier and Type | Method and Description
    --- | ---
    `List<FacesMessage>` | FacesContextWrapper.`getMessageList()` The default behavior of this method is to call `FacesContext.getMessageList()` on the wrapped `FacesContext` object.
    `List<FacesMessage>` | FacesContext.`getMessageList()` Like `FacesContext.getMessages()`, but returns a `List<FacesMessage>`, enabling use from EL expressions.
    `List<FacesMessage>` | FacesContextWrapper.`getMessageList(String clientId)` The default behavior of this method is to call `FacesContext.getMessageList(String)` on the wrapped `FacesContext` object.
    `List<FacesMessage>` | FacesContext.`getMessageList(String clientId)` Like `FacesContext.getMessages(java.lang.String)`, but returns a `List<FacesMessage>` of messages for the component with client id matching argument `clientId`.
    `Iterator<FacesMessage>` | FacesContextWrapper.`getMessages()` The default behavior of this method is to call `FacesContext.getMessages()` on the wrapped `FacesContext` object.
    `abstract Iterator<FacesMessage>` | FacesContext.`getMessages()` Return an `Iterator` over the `FacesMessage`s that have been queued, whether or not they are associated with any specific client identifier.
    `Iterator<FacesMessage>` | FacesContextWrapper.`getMessages(String clientId)` The default behavior of this method is to call `FacesContext.getMessages(String)` on the wrapped `FacesContext` object.
    `abstract Iterator<FacesMessage>` | FacesContext.`getMessages(String clientId)` Return an `Iterator` over the `FacesMessage`s that have been queued that are associated with the specified client identifier (if `clientId` is not `null`), or over the `FacesMessage`s that have been queued that are not associated with any specific client identifier (if `clientId` is `null`).

    Methods in javax.faces.context with parameters of type FacesMessage
    Modifier and Type | Method and Description
    --- | ---
    `void` | FacesContextWrapper.`addMessage(String clientId, FacesMessage message)` The default behavior of this method is to call `FacesContext.addMessage(String, FacesMessage)` on the wrapped `FacesContext` object.
    `abstract void` | FacesContext.`addMessage(String clientId, FacesMessage message)` Append a `FacesMessage` to the set of messages associated with the specified client identifier, if `clientId` is not `null`.

  - ### Uses of FacesMessage in javax.faces.convert

    Methods in javax.faces.convert that return FacesMessage
    Modifier and Type | Method and Description
    --- | ---
    `FacesMessage` | ConverterException.`getFacesMessage()` Returns the FacesMessage associated with this exception; this will only be available if the converter that thew this exception instance placed it there.

    Constructors in javax.faces.convert with parameters of type FacesMessage
    Constructor and Description
    `ConverterException(FacesMessage message)` Construct a new exception with the specified detail message and no root cause.
    `ConverterException(FacesMessage message, Throwable cause)` Construct a new exception with the specified detail message and root cause.

  - ### Uses of FacesMessage in javax.faces.validator

    Methods in javax.faces.validator that return FacesMessage
    Modifier and Type | Method and Description
    --- | ---
    `FacesMessage` | ValidatorException.`getFacesMessage()` Returns the `FacesMessage` associated with the exception.

    Methods in javax.faces.validator that return types with arguments of type FacesMessage
    Modifier and Type | Method and Description
    --- | ---
    `Collection<FacesMessage>` | ValidatorException.`getFacesMessages()` If this instance was created with a constructor that takes `Collection<FacesMessage>`, this method returns the passed collection, otherwise this method returns `null`.

    Constructors in javax.faces.validator with parameters of type FacesMessage
    Constructor and Description
    `ValidatorException(FacesMessage message)` Construct a new exception with the specified message and no root cause.
    `ValidatorException(FacesMessage message, Throwable cause)` Construct a new exception with the specified detail message and root cause.

    Constructor parameters in javax.faces.validator with type arguments of type FacesMessage
    Constructor and Description
    `ValidatorException(Collection<FacesMessage> messages)` Allow this one exception to contain multiple messages.
    `ValidatorException(Collection<FacesMessage> messages, Throwable cause)` Allow this one exception to contain multiple messages, while passing on the root cause to the superclass

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.