| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.I18n
I18n | public class I18n extends Component (Code) | |
Gets a resource bundle and place it on the value stack. This allows
the text tag to access messages from any bundle, and not just the bundle
associated with the current action.
- name* - the resource bundle's name (eg foo/bar/customBundle)
Example:
<ww:i18n name="myCustomBundle">
The i18n value for key aaa.bbb.ccc in myCustomBundle is <ww:property value="text('aaa.bbb.ccc')" />
</ww:i18n>
<ww:i18n name="some.package.bundle" >
<ww:text name="some.key" />
</ww:i18n>
author: Rickard �berg (rickard@dreambean.com) author: Rene Gielen author: tm_jee ( tm_jee (at) yahoo.co.uk ) version: $Revision: 2647 $ since: 2.2 |
pushed | protected boolean pushed(Code) | | |
setName | public void setName(String name)(Code) | | Name of ressource bundle to use (eg foo/bar/customBundle)
|
Methods inherited from com.opensymphony.webwork.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean escapeXml)(Code)(Java Doc) protected String determineNamespace(String namespace, OgnlValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected WebWorkException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public OgnlValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|