带验证的条纹布局

发布于 2024-12-26 03:55:39 字数 463 浏览 1 评论 0原文

我尝试使用 Stripes 布局标签(布局定义、布局渲染……)。 我的布局包括一个带有菜单的标题和下面的内容。 我在内容中呈现带有 Stripes 验证的表单:

    @ValidateNestedProperties({
    @Validate(field="email", required=true, on="edit", converter=EmailTypeConverter.class), ...

如果我使用验证,则会出现异常:

javax.servlet.ServletException: PWC1232: Exceeded maximum depth for nested request dispatches: 20

如果我删除表单的验证,它会起作用...

知道如何能够同时使用两者吗?或者我可能做错了什么?

谢谢!

I try to use the Stripes layout tags (layout-definition, layout-render, ...).
My layout include a header with a menu and a content under.
I render a form with Stripes validation in the content :

    @ValidateNestedProperties({
    @Validate(field="email", required=true, on="edit", converter=EmailTypeConverter.class), ...

If I use the validation I get an exception :

javax.servlet.ServletException: PWC1232: Exceeded maximum depth for nested request dispatches: 20

If I remove the validation of the form, it works...

Any idea how to be able to use both? Or probably I am doing something wrong?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

秋叶绚丽 2025-01-02 03:55:39

请为您的布局发布附加代码。我不认为这个错误与您的验证有任何关系。

听起来好像您正在一遍又一遍地调用 jsp include 。例如:

a.jsp 包括 b.jsp,b.jsp 包括 a.jsp 等...

Please post additional code for your layout. I do not believe this error has anything to do with your validation.

It could sound like you are calling jsp includes over and over again. e.g.:

a.jsp includes b.jsp which includes a.jsp etc...

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