提交表单而无需验证bean [英] Submit form without bean validation
本文介绍了提交表单而无需验证bean的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表单,该表单具有带有一些JSR-303
验证bean的域模型.现在,我想包括未经任何验证的保存草稿"功能.如果我在相应的commandButton上设置immediate=true
,则将跳过验证,但也会提交表单.
I've got a form which has a domain model with some JSR-303
validation beans. Now I would like to include a "Save draft" feature without any validation. If I set immediate=true
on my corresponding commandButton validation is skipped but also the form submit.
是否可以在保存草稿操作中更新模型?
Is there a way to update the model in my save draft action?
推荐答案
查看全文