• <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 插件填充对话框内的下拉列表

        时间:2023-10-14
          <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 插件填充对话框内的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何使用JavaScript函数重定向到Struts2中的另一个jsp页面 下一篇:如何使用 Struts2 禁用后退按钮

                  相关文章

                    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>