Save This Page
Home » struts-2.1.8.1-src » org.apache » struts2 » util » [javadoc | source]
org.apache.struts2.util
public class: TextProviderHelper [javadoc | source]
java.lang.Object
   org.apache.struts2.util.TextProviderHelper
Helper methods to access text from TextProviders
Method from org.apache.struts2.util.TextProviderHelper Summary:
getText,   getText,   getText
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.util.TextProviderHelper Detail:
 public static String getText(String key,
    String defaultMessage,
    ValueStack stack) 

    Get a message from the first TextProvider encountered in the stack. If the first TextProvider doesn't provide the message the default message is returned.

    The search for a TextProvider is iterative from the root of the stack.

    This method was refactored from org.apache.struts2.components.Text to use a consistent implementation across UIBean components.

 public static String getText(String key,
    String defaultMessage,
    List<Object> args,
    ValueStack stack) 

    Get a message from the first TextProvider encountered in the stack. If the first TextProvider doesn't provide the message the default message is returned.

    The stack is searched if if no TextProvider is found, or the message is not found.
 public static String getText(String key,
    String defaultMessage,
    List<Object> args,
    ValueStack stack,
    boolean searchStack) 

    Get a message from the first TextProvider encountered in the stack. If the first TextProvider doesn't provide the message the default message is returned.

    The search for a TextProvider is iterative from the root of the stack.

    This method was refactored from org.apache.struts2.components.Text to use a consistent implementation across UIBean components.