带验证的条纹布局
我尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请为您的布局发布附加代码。我不认为这个错误与您的验证有任何关系。
听起来好像您正在一遍又一遍地调用 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...