如何解决 Icefacesice:selectInputDate 验证问题
使用 IceFacesice:selectInputDate 时,日期选择始终会触发表单验证。
因此,当用户选择日期时,会显示所有验证错误。 当日期输入位于表单的开头并且所有字段均为空时,这尤其乏味。然后用户将看到所有“值缺失”错误消息。
这真是令人沮丧,对于像 IceFaces 这样广泛使用的框架来说真是一种耻辱。
有人有任何提示如何处理这个错误吗?
http://jira.icefaces.org/browse/ICE-4535
(立即= “真实”没有帮助)
谢谢。
When using the IceFaces ice:selectInputDate a date selection always triggers the form validation.
So when a user selects a date all validation errors are shown.
That's especially tedious when the date input is at the beginning of the form and all fields are empty. Then the user will get presented with all the "Value missing" error messages.
It's so frustating and really is a shame for such a widely-used framework like IceFaces.
Anybody got any hints how to handle this bug?
http://jira.icefaces.org/browse/ICE-4535
(immediate="true" does not help)
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现真正的问题不是摆脱验证,而是在发送部分提交后完全缺少 required="true" 的验证。
我在这里解决了这个问题: http://jsfbrickyard.wordpress.com/2010/03/10/how-to-fix-the-requiredtrue-and-partial-submit-problem-in-icefaces/
I found out that the real problem is not the getting rid of the validation but that the validation for required="true" is missing completely after a partial submit is sent.
I resolved this here: http://jsfbrickyard.wordpress.com/2010/03/10/how-to-fix-the-requiredtrue-and-partial-submit-problem-in-icefaces/
此博客文章中描述了另一个也许更好的解决方案(或解决方法):
http://jsfbrickyard .wordpress.com/2010/03/11/a-better-alternative-for-the-icefaces-inputselectinputdate-control/
它描述了如何使用 jquery UI datepicker 而不是ice:selectInputdate 控件。
欢迎评论。
another and maybe better solution (or workaround) is described in this blog entry:
http://jsfbrickyard.wordpress.com/2010/03/11/a-better-alternative-for-the-icefaces-inputselectinputdate-control/
it describes how to use jquery UI datepicker instead of the ice:selectInputdate control.
comments welcome.