| java.lang.Object com.opensymphony.webwork.components.Component com.opensymphony.webwork.components.UIBean com.opensymphony.webwork.components.FieldError
FieldError | public class FieldError extends UIBean implements UnnamedParametric(Code) | |
Render field errors if they exists. Specific layout depends on the particular theme.
Examples
<!-- example 1 -->
<ww:fielderror />
<!-- example 2 -->
<ww:fielderror>
<ww:param>field1</ww:param>
<ww:param>field2</ww:param>
</ww:fielderror>
<ww:form .... >>
....
</ww:form>
OR
<ww:fielderror>
<ww:param value="%{'field1'}" />
<ww:param value="%{'field2'}" />
</ww:fielderror>
<ww:form .... >>
....
</ww:form>
Description
Example 1: display all field errors
Example 2: display field errors only for 'field1' and 'field2'
author: tm_jee version: $Date: 2006-01-01 16:16:03 +0100 (Sun, 01 Jan 2006) $ $Id: FieldError.java 1897 2006-01-01 15:16:03Z tmjee $ |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
getFieldErrorFieldNames | public List getFieldErrorFieldNames()(Code) | | |
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)
|
|
|