Java displaytag 表单选项
在 displaytags 的文档中,提到了一个表单选项,
我尝试使用此选项将一些数据发布到另一个页面上,这将为我提供分页视图的下 10 个结果。但我收到一个 js 错误,说
"Error: displaytagform is not defined
Source File: javascript:displaytagform('ss',[{f:'CityState',v:['']},{f:'Vendor',v:['Deepaks%20Cafe']},{f:'d-3996743-p',v:'2'}])
Line: 1"
有人可以帮助我吗?
In the documentation for displaytags there is a form option mentioned along with
Iam trying to use this option to post some data onto another page which will give me the next 10 results for a paginated view. But I get a js error saying
"Error: displaytagform is not defined
Source File: javascript:displaytagform('ss',[{f:'CityState',v:['']},{f:'Vendor',v:['Deepaks%20Cafe']},{f:'d-3996743-p',v:'2'}])
Line: 1"
Can someone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您现在一定已经找到了解决方案,但以防万一其他人可能需要提示:您必须创建一个 JavaScript 函数,如下所示:
displaytagform(arguments)
,其中arguments[0 ]
是表单名称,arguments[1]
是对象参数数组,其中“f”和“v”作为每个对象的属性。所以必须将参数一一设置到表单中。You must have found a solution by now, but just in case someone else might need the tip: you have to create a JavaScript function just like this:
displaytagform(arguments)
, wherearguments[0]
is the form name andarguments[1]
is the array of object parameters with 'f' and 'v' as properties of each object. So you must set the parameters to the form one by one.