BindingUpdateErrors Class
- public class BindingUpdateErrors
extends AbstractBaseTag
Renders the set of error messages found during the process of resolving data binding expressions
({pageFlow.firstname}, {request.firstname}, etc.).
These errors are treated as warnings.
By default, this tag is only active in
Development mode and the warning are not displayed in Production mode.
The tag is intended for development use.
Attribute Descriptions |
Attribute | Required | Runtime Expression Evaluation | Data Bindable |
alwaysReport | No | No | No |
This attribute will override the default behavior of only showing errors in iterative development mode, so they are also shown in production mode. |
expression | No | No | No |
This attribute will display errors only for the specified expression. |
Related Topics
<netui:bindingUpdateErrors> Tag Sample
-
Hierarchy
-
Object
TagSupport
BodyTagSupport
AbstractBaseTag
BindingUpdateErrors
-
All Implemented Interfaces
-
BodyTag
, IterationTag
, Serializable
, Tag
Fields from com.bea.wlw.netui.tags.AbstractBaseTag |
ATTR_GENERAL , ATTR_GENERAL_EXPRESSION , ATTR_JAVASCRIPT , ATTR_STYLE , CLASS , ID , JAVASCRIPT_STATUS , NAME , NETUI_UNIQUE_CNT , ONCLICK , ONDBLCLICK , ONKEYDOWN , ONKEYPRESS , ONKEYUP , ONMOUSEDOWN , ONMOUSEMOVE , ONMOUSEOUT , ONMOUSEOVER , ONMOUSEUP , STYLE , TABINDEX
|
public int |
-
doStartTag ()
- Render the specified error messages if there are any.
|
public String |
-
getExpression ()
- Returns the expression to match for binding errors.
|
public String |
-
getTagName ()
- Return the name of the Tag.
|
public boolean |
-
isAlwaysReport ()
- Returns
true if errors are reported in production mode.
|
protected void |
-
localRelease ()
- Release any acquired resources.
|
public void |
-
setAlwaysReport (boolean alwaysReport)
- Set the value which will override the default behavior of not showing
errors in production mode.
|
public void |
-
setExpression (String expression)
- Sets the expression to match for binding errors.
|
Methods from com.bea.wlw.netui.tags.AbstractBaseTag |
addTagIdMapping , evaluateAttributeToString , filter , filter , getJavaScriptUtils , getNearestForm , getScriptReporter , getUserLocale , registerTagError , release , renderAttribute , rewriteName , write
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindingUpdateErrors
public BindingUpdateErrors()
doStartTag() Method
public int doStartTag()
throws JspException
Render the specified error messages if there are any.
-
Overrides
-
BodyTagSupport.doStartTag()
Exceptions
-
JspException
- if a JSP exception has occurred
getExpression() Method
public String
getExpression()
Returns the expression to match for binding errors. If an expression
is set, only binding errors for that expression will be displayed.
Otherwise, all errors will be displayed.
Returns
- the expression being match
getTagName() Method
public String
getTagName()
Return the name of the Tag.
-
Overrides
-
AbstractBaseTag.getTagName()
isAlwaysReport() Method
public boolean isAlwaysReport()
Returns true
if errors are reported in production mode.
The default behavior is to only display errors in interative
development.
Returns
- the boolean value indicating if errors are reported in production mode.
localRelease() Method
protected void localRelease()
Release any acquired resources.
-
Overrides
-
AbstractBaseTag.localRelease()
setAlwaysReport(boolean) Method
public void setAlwaysReport(boolean alwaysReport)
Set the value which will override the default behavior of not showing
errors in production mode.
Parameters
-
alwaysReport
- a boolean that if
true
will cause
the errors to always be displayed. The default is false
setExpression(String) Method
public void setExpression(String
expression)
Sets the expression to match for binding errors. If an expression
is set, only binding errors for that expression will be displayed.
Otherwise, all errors will be displayed.
Parameters
-
expression
- The expression to match against.