站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 bate1 API 英文版文档

FacesMessages (JBoss Seam API Documentation) - JBoss Seam 1.1.0 bate1 API 英文版文档


org.jboss.seam.core
Class FacesMessages

java.lang.Object
  extended by org.jboss.seam.core.FacesMessages
All Implemented Interfaces:
Serializable

@Scope(value=CONVERSATION)
@Name(value="facesMessages")
@Intercept(value=NEVER)
public class FacesMessages
extends Object
implements Serializable

A Seam component that TBD.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
FacesMessages()
           
 
Method Summary
 void add(javax.faces.application.FacesMessage.Severity severity, String messageTemplate, Object... params)
          Add a templated FacesMessage that will be used the next time a page is rendered.
 void add(javax.faces.application.FacesMessage facesMessage)
          Add a FacesMessage that will be used the next time a page is rendered.
 void add(org.hibernate.validator.InvalidValue iv)
           
 void add(String id, javax.faces.application.FacesMessage.Severity severity, String messageTemplate, Object... params)
          Add a templated FacesMessage to a particular component id
 void add(String id, javax.faces.application.FacesMessage facesMessage)
          Add a FacesMessage instance to a particular component id
 void add(String messageTemplate, Object... params)
          Add a templated FacesMessage that will be used the next time a page is rendered.
 void add(String id, String messageTemplate, Object... params)
          Add a templated FacesMessage to a particular component id
 void addFromResourceBundle(javax.faces.application.FacesMessage.Severity severity, String key, Object... params)
          Add a templated FacesMessage by looking for the message template in the resource bundle.
 void addFromResourceBundle(javax.faces.application.FacesMessage.Severity severity, String key, String defaultMessageTemplate, Object... params)
          Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle.
 void addFromResourceBundle(String id, javax.faces.application.FacesMessage.Severity severity, String key, Object... params)
          Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle.
 void addFromResourceBundle(String id, javax.faces.application.FacesMessage.Severity severity, String key, String defaultMessageTemplate, Object... params)
          Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle.
 void addFromResourceBundle(String key, Object... params)
          Add a templated FacesMessage by looking for the message template in the resource bundle.
 void addFromResourceBundle(String id, String key, Object... params)
          Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle.
static void afterPhase()
           
 void beforeRenderResponse()
           
 void clear()
           
static javax.faces.application.FacesMessage createFacesMessage(javax.faces.application.FacesMessage.Severity severity, String messageTemplate, Object... params)
           
static FacesMessages instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesMessages

public FacesMessages()
Method Detail

beforeRenderResponse

public void beforeRenderResponse()

afterPhase

public static void afterPhase()

clear

public void clear()

add

public void add(javax.faces.application.FacesMessage facesMessage)
Add a FacesMessage that will be used the next time a page is rendered.


add

public void add(String id,
                javax.faces.application.FacesMessage facesMessage)
Add a FacesMessage instance to a particular component id

Parameters:
id - a JSF component id

add

public void add(String id,
                String messageTemplate,
                Object... params)
Add a templated FacesMessage to a particular component id

Parameters:
id - a JSF component id

add

public void add(String id,
                javax.faces.application.FacesMessage.Severity severity,
                String messageTemplate,
                Object... params)
Add a templated FacesMessage to a particular component id

Parameters:
id - a JSF component id

instance

public static FacesMessages instance()

add

public void add(String messageTemplate,
                Object... params)
Add a templated FacesMessage that will be used the next time a page is rendered.


add

public void add(javax.faces.application.FacesMessage.Severity severity,
                String messageTemplate,
                Object... params)
Add a templated FacesMessage that will be used the next time a page is rendered.


addFromResourceBundle

public void addFromResourceBundle(String key,
                                  Object... params)
Add a templated FacesMessage by looking for the message template in the resource bundle.


addFromResourceBundle

public void addFromResourceBundle(javax.faces.application.FacesMessage.Severity severity,
                                  String key,
                                  Object... params)
Add a templated FacesMessage by looking for the message template in the resource bundle.


addFromResourceBundle

public void addFromResourceBundle(String id,
                                  String key,
                                  Object... params)
Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle.


addFromResourceBundle

public void addFromResourceBundle(String id,
                                  javax.faces.application.FacesMessage.Severity severity,
                                  String key,
                                  Object... params)
Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle.


addFromResourceBundle

public void addFromResourceBundle(javax.faces.application.FacesMessage.Severity severity,
                                  String key,
                                  String defaultMessageTemplate,
                                  Object... params)
Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle. If it is missing, use the given message template.


addFromResourceBundle

public void addFromResourceBundle(String id,
                                  javax.faces.application.FacesMessage.Severity severity,
                                  String key,
                                  String defaultMessageTemplate,
                                  Object... params)
Add a templated FacesMessage to a particular component id by looking for the message template in the resource bundle. If it is missing, use the given message template.


add

public void add(org.hibernate.validator.InvalidValue iv)

createFacesMessage

public static javax.faces.application.FacesMessage createFacesMessage(javax.faces.application.FacesMessage.Severity severity,
                                                                      String messageTemplate,
                                                                      Object... params)