struts2-jquery-plugin

How to change autocompleter widget size

拟墨画扇 提交于 2019-12-10 12:26:32
问题 I tried the code from the project to change the size of the select box: <strong>Result Div :</strong> <div id="formResult" class="result ui-widget-content ui-corner-all">Submit form bellow.</div> <strong>Topics Div :</strong> <div id="topics" class="result ui-widget-content ui-corner-all"></div> <s:form id="form" action="echo" theme="simple" cssClass="yform"> <fieldset> <legend>Select Box as Autocompleter</legend> <div class="type-select"> <label for="echo">Echo: </label> <sj:autocompleter id

load parts of a JSON in many divs + Struts2

点点圈 提交于 2019-12-07 17:55:31
问题 I need load the content of a Object JSON in many divs, but in parts. For example, My JSON structure: {"Example": { "Hi": "hi", "Bye": "bye" } } Assuming that the JSON string successfully load my JSP page. I am trying to load the contents of the JSON like this: (For the attribute Hi and Bye ) <sj:div id="div1" dataType = "json"> <s:property value="Example.Hi"/> </sj:div> <sj:div id="div2" dataType = "json"> <s:property value="Example.Bye"/> </sj:div> Struts.xml: <action name="name" class=

Hiding a datepicker using jQuery

感情迁移 提交于 2019-12-07 07:15:17
问题 I am using struts2 jquery plugin s datepicker as below <sj:datepicker id="frdate" name="training.fromDate" label="From Date (dd-mm-yyyy)" maxDate="0" /> I want to hide this on certain coditions.I have written a jquery like this. $("#frdate").hide(); //this will hide textbox of datepicker $("label[for='frdate']").hide(); // this will hide label of datepicker But datepicker button still showing? How to hide it using jquery? The generated html code is: <tr> <td class="tdLabel"> <label for=

Using a drop-down list in an editable grid column using Struts2-jQuery-grid plugin

北城余情 提交于 2019-12-07 04:45:16
问题 I'm trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 plugin as follows. <s:url id="dataURL" action="CategoryList" namespace="/admin_side"/> <sjg:gridColumn name="subCategory.category.catName" index="subCategory.category.catName" edittype="select" searchtype="select" formoptions="{label:'Select'}" surl="%{dataURL}" editoptions="{dataUrl : '%{dataURL}'}" editrules="{required: true}" title="Category" width="200" sortable="true" search="true" editable="true

load parts of a JSON in many divs + Struts2

北慕城南 提交于 2019-12-06 03:41:48
I need load the content of a Object JSON in many divs, but in parts. For example, My JSON structure: {"Example": { "Hi": "hi", "Bye": "bye" } } Assuming that the JSON string successfully load my JSP page. I am trying to load the contents of the JSON like this: (For the attribute Hi and Bye ) <sj:div id="div1" dataType = "json"> <s:property value="Example.Hi"/> </sj:div> <sj:div id="div2" dataType = "json"> <s:property value="Example.Bye"/> </sj:div> Struts.xml: <action name="name" class="class" method="method"> <result type="json"> <param name="root"> Example </param> </result> </action> but

Hiding a datepicker using jQuery

做~自己de王妃 提交于 2019-12-05 16:37:02
I am using struts2 jquery plugin s datepicker as below <sj:datepicker id="frdate" name="training.fromDate" label="From Date (dd-mm-yyyy)" maxDate="0" /> I want to hide this on certain coditions.I have written a jquery like this. $("#frdate").hide(); //this will hide textbox of datepicker $("label[for='frdate']").hide(); // this will hide label of datepicker But datepicker button still showing? How to hide it using jquery? The generated html code is: <tr> <td class="tdLabel"> <label for="frdate" class="label">From Date (dd-mm-yyyy):</label></td> <td><input type="text" name="training.fromDate"

Using a drop-down list in an editable grid column using Struts2-jQuery-grid plugin

眉间皱痕 提交于 2019-12-05 11:36:59
I'm trying to populate a drop down list in a grid column using the Struts2-jQuery-grid-3.7.0 plugin as follows. <s:url id="dataURL" action="CategoryList" namespace="/admin_side"/> <sjg:gridColumn name="subCategory.category.catName" index="subCategory.category.catName" edittype="select" searchtype="select" formoptions="{label:'Select'}" surl="%{dataURL}" editoptions="{dataUrl : '%{dataURL}'}" editrules="{required: true}" title="Category" width="200" sortable="true" search="true" editable="true" sorttype="text"/> And the action where the CategoryList action is mapped is as follows. @Namespace("

Struts2 jQuery struts-plugin.xml invalid

馋奶兔 提交于 2019-12-02 09:32:03
问题 I have setup a project which is a combo of Struts2 + Springs + JPA. I recently came across the Struts2-Jquery Plugin Using this plugin (struts2-jquery-plugin-3.5.1.jar) in my project I got an error Unable to load jar:file:/H:/My%20Project/phase1/build/web/WEB-INF/lib/struts2-jquery-plugin-3.5.1.jar!/struts-plugin.xml - Class: java.net.PlainSocketImpl File: PlainSocketImpl.java Method: connect Line: 195 - java/net/PlainSocketImpl.java:195:-1 at com.opensymphony.xwork2.config.providers

Implementing <sj:select /> in Struts2

假如想象 提交于 2019-12-02 07:42:32
问题 I am currently working with a project, I have multiple select box in my application, each values should change according to the previous value selected in the first list, here is my code, i did not get the second select list. Here is my jsp. <s:form id="onSelectList" action="#"> <s:hidden id="c_country" name="buildingName" value="%{bean.building}"></s:hidden> <s:hidden id="s_state" name="blockName" value="%{bean.block}"></s:hidden> </s:form> <s:hidden name="hospitalFloor.buildingName" id="c

Struts2 jQuery struts-plugin.xml invalid

谁说胖子不能爱 提交于 2019-12-02 05:30:35
I have setup a project which is a combo of Struts2 + Springs + JPA. I recently came across the Struts2-Jquery Plugin Using this plugin (struts2-jquery-plugin-3.5.1.jar) in my project I got an error Unable to load jar:file:/H:/My%20Project/phase1/build/web/WEB-INF/lib/struts2-jquery-plugin-3.5.1.jar!/struts-plugin.xml - Class: java.net.PlainSocketImpl File: PlainSocketImpl.java Method: connect Line: 195 - java/net/PlainSocketImpl.java:195:-1 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:909) at com.opensymphony.xwork2