Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


oracle.adf.view.rich.util
Class FacesMessageUtils

java.lang.Object
  extended by oracle.adf.view.rich.util.FacesMessageUtils


public class FacesMessageUtils
extends java.lang.Object

Simple class used to create BLAF+ Confirmation Type messages.


Method Summary
static javax.faces.application.FacesMessage createPropertyMapMessage(javax.faces.application.FacesMessage message, java.util.Map<java.lang.String,java.lang.Object> properties)
          Returns a message that is the same as the provided faces message except that it has some additional properties which may be used by a component to better render messaging info
static javax.faces.application.FacesMessage getConfirmationMessage(javax.faces.application.FacesMessage message)
          Returns a message that is the same as the provided faces message except that it has a severity of INFO and will render in the Rich Renderkit as a confirmation type message.
static javax.faces.application.FacesMessage getConfirmationMessage(java.lang.String summary, java.lang.String detail)
          Returns a confirmation message with a certain summary and detail.
static java.util.Map<java.lang.String,java.lang.Object> getPropertyMapFromMessage(javax.faces.application.FacesMessage message)
          Returns the property map if there is one, the message passed in is created by calling createPropertyMapMessage.
static boolean isConfirmationMessage(javax.faces.application.FacesMessage message)
          Returns true is a FacesMessage is a confirmation message.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getConfirmationMessage

public static final javax.faces.application.FacesMessage getConfirmationMessage(javax.faces.application.FacesMessage message)
Returns a message that is the same as the provided faces message except that it has a severity of INFO and will render in the Rich Renderkit as a confirmation type message.
Parameters:
message - a faces message
Returns:
the confirmation message

getConfirmationMessage

public static final javax.faces.application.FacesMessage getConfirmationMessage(java.lang.String summary,
                                                                                java.lang.String detail)
Returns a confirmation message with a certain summary and detail. Confirmation messages have a severity of INFO but will be rendered in the Rich Renderkit as a confirmation type message.
Parameters:
summary - the message summary
detail - the message detail
Returns:
the confirmation message

isConfirmationMessage

public static final boolean isConfirmationMessage(javax.faces.application.FacesMessage message)
Returns true is a FacesMessage is a confirmation message.
Parameters:
message - a faces message
Returns:
true if this is a confirmation message and false if it is not.

createPropertyMapMessage

public static final javax.faces.application.FacesMessage createPropertyMapMessage(javax.faces.application.FacesMessage message,
                                                                                  java.util.Map<java.lang.String,java.lang.Object> properties)
Returns a message that is the same as the provided faces message except that it has some additional properties which may be used by a component to better render messaging info
Parameters:
message - a faces message
properties - a property map
Returns:
the properties message

getPropertyMapFromMessage

public static final java.util.Map<java.lang.String,java.lang.Object> getPropertyMapFromMessage(javax.faces.application.FacesMessage message)
Returns the property map if there is one, the message passed in is created by calling createPropertyMapMessage.
Parameters:
message - a faces message
properties - a property map
Returns:
the properties message

Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.0)
E10684-08


Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.