|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectRequestContextAwareTag
org.springmodules.validation.valang.javascript.taglib.ValangCodebaseTag
public class ValangCodebaseTag
Generates the JavaScript codebase that is necessary for the use of the
JavaScript validation produced by ValangValidateTag.
The generated codebase is an exact copy of the code from the file "valang_codebase.js" located in org.springmodules.validation.valang.javascript. You can therefor avoid having to use this tag by simply placing this file on your web server and linking to it using a the following HTML:
<script type="text/javascript" src="/somepath/valang_codebase.js"></script>
When using this tag or the HTML above you must make sure that the
codebase is included before any ValangValidateTags in you JSP file.
| Constructor Summary | |
|---|---|
ValangCodebaseTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
void |
doFinally()
|
protected int |
doStartTagInternal()
|
void |
setFieldErrorsIdSuffix(java.lang.String fieldErrorsIdSuffix)
Sets the id suffix of the element that should hold the error of a specific field. |
void |
setGlobalErrorsId(java.lang.String globalErrorsId)
Sets the id of the element that will hold the global error. |
void |
setIncludeScriptTags(java.lang.String includeScriptTags)
Sets whether or not the generated code should be wrapped in HTML <script> tags. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValangCodebaseTag()
| Method Detail |
|---|
public void setIncludeScriptTags(java.lang.String includeScriptTags)
public void setGlobalErrorsId(java.lang.String globalErrorsId)
globalErrorsId - The id of the element that should hold the global errors.public void setFieldErrorsIdSuffix(java.lang.String fieldErrorsIdSuffix)
fieldErrorsIdSuffix - The id suffix of the element that should hold the error of a specific field.
protected int doStartTagInternal()
throws ServletException,
JspException
ServletException
JspException
public int doEndTag()
throws JspException
JspExceptionpublic void doFinally()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||