cfwheels,从不成功的模型更新中获取错误
我正在尝试在编辑后更新具有嵌套属性的模型。
更新失败,但我使用 #errorMessagesFor(objectName='myobject')# 没有收到任何错误。
知道如何找到原因吗?
I'm trying to update a model with nested properties after an edit.
The update fails, but I'm not getting any errors using #errorMessagesFor(objectName='myobject')#
.
Any idea how to get to the cause?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将对数组中的每个对象使用
allErrors()
方法。I would use the
allErrors()
method on each of the objects in the array.您可能想尝试 Wheels google 组并包含一些代码示例。
如果在控制器中发生错误后执行重定向,则出现错误的模型对象不存在,则必须执行渲染分页器。
You may want to try the Wheels google group and include some code examples.
If after the error happens in the controller if you do a redirect, the model object with the error doesn't exist, you'll have to do a renderpager.