Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.struts.faces.taglib
Class LoadMessagesTag  view LoadMessagesTag download LoadMessagesTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.struts.faces.taglib.LoadMessagesTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class LoadMessagesTag
extends javax.servlet.jsp.tagext.TagSupport

Tag that exposes a specified MessageResources instance as Map, so that the embedded messages may be retrieved via value binding expressions.


Field Summary
private  java.lang.String messages
          The name of the MessageResources to expose, or null for the default MessageResources for this application module.
private  java.lang.String var
          The request attribute key under which a Map will be exposed.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
LoadMessagesTag()
           
 
Method Summary
 int doStartTag()
          Expose a Map wrapping the specified MessageResources instance, for the Locale specified in the view root component of the current view.
 void release()
          Release any resources allocated by this tag instance.
 void setMessages(java.lang.String messages)
           
 void setVar(java.lang.String var)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

private java.lang.String messages

The name of the MessageResources to expose, or null for the default MessageResources for this application module.


var

private java.lang.String var

The request attribute key under which a Map will be exposed.

Constructor Detail

LoadMessagesTag

public LoadMessagesTag()
Method Detail

setMessages

public void setMessages(java.lang.String messages)

setVar

public void setVar(java.lang.String var)

doStartTag

public int doStartTag()

Expose a Map wrapping the specified MessageResources instance, for the Locale specified in the view root component of the current view.


release

public void release()

Release any resources allocated by this tag instance.