在struts 2中Optiontransferselect的moveSelectedOptions似乎不起作用
我有一个选项transferselect,左侧列表框有几个值。当我尝试将值向右移动时,按钮不起作用。当我单击“移动选择”按钮时,没有发生错误。值也不会移动。
I have a optiontransferselect and the left list box has a couple of values. When I try to move the values to the right .the button doesnt work. There is no error occuring when i click on the moveselect button .The values dont move either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题似乎在于所分配的值。如果列表的值类似于“19090-123242”,当有连字符和后面的1时,javascript似乎将其视为-1 headerkey值,并且不会将其移动到另一个框。它是一个 struts 错误。
The issue seems to be with the value that is being assigned . If the value of list has something like this "19090-123242" , when there is a hypen and a 1 following , the javascript seems to take it as the -1 the headerkey value and does not move it to the other box. Its a struts bug.
我遇到了与 struts-tags 的 s:optiontransferselect 组件相关的问题。允许向右和向左移动项目的按钮不起作用,但它只发生在 Internet Explorer(IE7 和 IE8)中。它适用于 FireFox 和 Chrome。
就我而言,我也使用 Ajax,并且有两个 .JSP 文件(一个用于主表单,第二个仅用于 optiontransferselect 组件),并且我已包含 sx:div main.jsp 中的 struts-dojo-tags 组件,用于根据 中选择的值加载 list 和 dobleList optiontransferselect 属性:选择组件。
这是我的pom依赖项,我不知道它可以帮助你找出问题:
非常感谢!
I have a problem linked with s:optiontransferselect component of struts-tags. Buttons that allow move items right and Left don't work, but it only happen in Internet Explorer (IE7 and IE8). It works in FireFox and Chrome.
In my case I'm working with Ajax too and I have two .JSP files (one for main form and second only for optiontransferselect component) and I've included sx:div component of struts-dojo-tags in main.jsp to load list and dobleList optiontransferselect attributes based on value selected in s:select components.
Thats my pom dependencies, I don't know it it can help you to find out the problem:
Thank you so much!