我如何使用Spring WebFlow,Spring-JS,dojo,dijit进行字段验证和检查请求的字段

时间:2012-10-10 14:01:25

标签: spring-mvc dojo spring-webflow spring-js

如何使用Sprinig WebFlow,Spring-JS,dojo进行字段验证和检查请求的字段。

我知道我必须做以下事情:

<script type="text/javascript">                     Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'proceed', event:'onclick'}));
</script>

<form:input path="creditCardName" maxlength="40"/>
<script type="text/javascript">
Spring.addDecoration(new Spring.ElementDecoration({
    elementId : "creditCardName",
    widgetType : "dijit.form.ValidationTextBox",
    widgetAttrs : { required : true }}));
</script>

这就是我所要做的一切吗?

0 个答案:

没有答案