如何解决 Icefacesice:selectInputDate 验证问题

发布于 2024-08-24 18:05:59 字数 376 浏览 0 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

只为一人 2024-08-31 18:05:59

我发现真正的问题不是摆脱验证,而是在发送部分提交后完全缺少 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/

笑忘罢 2024-08-31 18:05:59

此博客文章中描述了另一个也许更好的解决方案(或解决方法):
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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文