Joh*_*ith 0 java spring spring-mvc spring-webflow
Spring Web Flow ...如何仅在一次转换时停止表单验证.
如何仅在一个转换上停止表单验证.使用以下代码我打开表单验证,一切都运行良好,但如果用户单击"取消"我不想运行表单验证.不管怎么说?
<view-state id="helloworld" view="input.jsp" model="customer" popup="true">
<transition on="submit" to="preview" />
<transition on="cancel" to="thanks"/>
</view-state>
Run Code Online (Sandbox Code Playgroud)
转换能够定义是否需要绑定和验证,只需将它们设置为false即可.
<view-state id="helloworld" view="input.jsp" model="customer" popup="true">
<transition on="submit" to="preview" />
<transition on="cancel" to="thanks" validate="false" bind="false"/>
</view-state>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2792 次 |
| 最近记录: |