• <small id='4TsBZ'></small><noframes id='4TsBZ'>

    • <bdo id='4TsBZ'></bdo><ul id='4TsBZ'></ul>
      <tfoot id='4TsBZ'></tfoot>

        <legend id='4TsBZ'><style id='4TsBZ'><dir id='4TsBZ'><q id='4TsBZ'></q></dir></style></legend>
      1. <i id='4TsBZ'><tr id='4TsBZ'><dt id='4TsBZ'><q id='4TsBZ'><span id='4TsBZ'><b id='4TsBZ'><form id='4TsBZ'><ins id='4TsBZ'></ins><ul id='4TsBZ'></ul><sub id='4TsBZ'></sub></form><legend id='4TsBZ'></legend><bdo id='4TsBZ'><pre id='4TsBZ'><center id='4TsBZ'></center></pre></bdo></b><th id='4TsBZ'></th></span></q></dt></tr></i><div id='4TsBZ'><tfoot id='4TsBZ'></tfoot><dl id='4TsBZ'><fieldset id='4TsBZ'></fieldset></dl></div>

        使用 Struts2 jQuery 插件填充对话框内的下拉列表

        Populate dropdown list inside Dialog using Struts2 jQuery Plugin(使用 Struts2 jQuery 插件填充对话框内的下拉列表)
          <tbody id='yQzqD'></tbody>

          • <bdo id='yQzqD'></bdo><ul id='yQzqD'></ul>

              <small id='yQzqD'></small><noframes id='yQzqD'>

            • <legend id='yQzqD'><style id='yQzqD'><dir id='yQzqD'><q id='yQzqD'></q></dir></style></legend>
                <i id='yQzqD'><tr id='yQzqD'><dt id='yQzqD'><q id='yQzqD'><span id='yQzqD'><b id='yQzqD'><form id='yQzqD'><ins id='yQzqD'></ins><ul id='yQzqD'></ul><sub id='yQzqD'></sub></form><legend id='yQzqD'></legend><bdo id='yQzqD'><pre id='yQzqD'><center id='yQzqD'></center></pre></bdo></b><th id='yQzqD'></th></span></q></dt></tr></i><div id='yQzqD'><tfoot id='yQzqD'></tfoot><dl id='yQzqD'><fieldset id='yQzqD'></fieldset></dl></div>
                  <tfoot id='yQzqD'></tfoot>

                1. 本文介绍了使用 Struts2 jQuery 插件填充对话框内的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个对话框,我必须从数据库中填充一个下拉列表.我正在使用 struts2-juery-plugins 来实现对话框.此对话框在某些事件上打开.这就是我创建 Dialog 的方式.

                  I have a Dialog in which I have to populate a dropdown list from database.I am using struts2-juery-plugins to implement Dialog.This Dialog is open on some event. This is how I create Dialog .

                  <sj:dialog 
                       id="mybuttondialog"
                       href="%{fillUser}"
                       buttons="{
                              'Assign':function() { approoveButton(); },
                              'Deny':function() { denyButton(); }
                              }"
                       autoOpen="false"
                       modal="true"
                       title="Assign-Task"
                       closeTopics="closeThisDialog">
                  <label>User</label>
                    <select id="userCombo" name="userCombo">
                      <s:iterator value="userList">
                        <option><s:property value="helper_name" /></option>
                      </s:iterator>
                    </select>    
                  </sj:dialog>
                  

                  我正在调用一个动作来使用

                  I am calling an action to fill dropdown list using

                  <s:url var="fillUser" action="getAllUsers" />
                  

                  但列表未填充,DialogjsonData 填充,如下所示

                  But list is not populating and Dialog got filled with jsonData as following

                  {"helpDeskUsers":"success","userList":
                  [{"departments":null,"helper_name":"arvin","helper_value":null,"user_level":null},
                  {"departments":null,"helper_name":"anand","helper_value":null,"user_level":null},
                  {"departments":null,"helper_name":"Nehal","helper_value":null,"user_level":null},
                  

                  为什么列表没有填充,而是整个 Dailog 都填充了上述数据.任何帮助都会很棒.

                  Why list is not populating instead whole Dailog is filled with above data. Any help would be great.

                  推荐答案

                  <select 标签不能用于 json 列表,你应该使用类似

                  The <select tag will not work with json list, you should use something like

                  <s:url var="fillUser" action="getAllUsers" />
                  <sj:select
                    id="userjson"
                    name="users"
                    href="%{fillUser}"
                    list="userList"
                    listValue="helper_name"
                    listKey="helper_name"
                  

                  这篇关于使用 Struts2 jQuery 插件填充对话框内的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)

                      1. <i id='ohPse'><tr id='ohPse'><dt id='ohPse'><q id='ohPse'><span id='ohPse'><b id='ohPse'><form id='ohPse'><ins id='ohPse'></ins><ul id='ohPse'></ul><sub id='ohPse'></sub></form><legend id='ohPse'></legend><bdo id='ohPse'><pre id='ohPse'><center id='ohPse'></center></pre></bdo></b><th id='ohPse'></th></span></q></dt></tr></i><div id='ohPse'><tfoot id='ohPse'></tfoot><dl id='ohPse'><fieldset id='ohPse'></fieldset></dl></div>

                          <small id='ohPse'></small><noframes id='ohPse'>

                          <tfoot id='ohPse'></tfoot>
                          • <bdo id='ohPse'></bdo><ul id='ohPse'></ul>

                            <legend id='ohPse'><style id='ohPse'><dir id='ohPse'><q id='ohPse'></q></dir></style></legend>
                              <tbody id='ohPse'></tbody>