dojo

Struts 2.3.16 sx:submit targets not working as expected

穿精又带淫゛_ 提交于 2019-12-25 16:55:43
问题 I worked with Struts 2.0.11 and Struts 2.1.6 and have no problem with the s:submit or sx:submit with "targets" attribute. While upgrading our project from Struts 2.0.11 to 2.3.16, I have the following problem: <head> <sx:head parseContent="true"/> </head> <s:form action="report_accumulatedResult" cssStyle="font-size :8pt; font-family: verdana" method="post" validate="true" > <s:textfield name="startDate" label="Start Date" size="15" cssClass="datepicker" /> <s:textfield name="endDate" label=

Dojo cyclic dependency using require

家住魔仙堡 提交于 2019-12-25 16:38:10
问题 I'm using dojo and these are my modules - 'myview/ModuleA' --requires--> 'myview/ModuleB' 'myview/ModuleB' --requires--> 'myview/ModuleC' 'myview/ModuleC' --requires--> 'myview/ModuleD' Now, I'm trying to make 'myview/ModuleD' --requires--> 'myview/ModuleB' But the code fails in ModuleD when it tries to instantiate ModuleB as new ModuleB () with TypeError: ModuleB is not a constructor . I see that ModuleB is just an object and not a function in ModuleD when it is trying to instantiate it. So

IBM Worklight 6.0 - Dojo application doesn't work on Samsung Galaxy S3

天大地大妈咪最大 提交于 2019-12-25 15:53:36
问题 I haven't been able to get any worklight/dojo apps to work on the Samsung Galaxy S3. I have put together a trivial Worklight application in Worklight Studio v6. It has 2 views. The first view has a text box and a button, the second view has a text box. <div data-dojo-type="dojox.mobile.ScrollableView" id="view0" data-dojo-props="selected:true"> <div data-dojo-type="dojox.mobile.Heading" data-dojo-props="label:'Page 0'"></div> <input data-dojo-type="dojox.mobile.TextBox"> <button data-dojo

Different encoding of an HTTP request result, depending on the Accept header

爱⌒轻易说出口 提交于 2019-12-25 15:17:32
问题 I have a controller with a method to upload files, using, on the client side, the dojo Uploader class that supports ajax uploads for all browsers except IE, and uploads with an IFrame for IE. The result is a JSON object, but when the IFrame mechanism is used, the JSON must be enclosed in a <textarea>: @RequestMapping(value = "/documentation/{appId:.+}/", method = RequestMethod.POST) @ResponseBody public String uploadDocumentation(HttpServletRequest request, @PathVariable String appId,

ASP.NET webAPI <--> Dojo uploader response format is wrong

本秂侑毒 提交于 2019-12-25 14:46:15
问题 i have a problem with uploading documents with dojo. I´m using the dojox/form/Uploader to upload a file withiframe mode. After uploading there is a response from the server in a special format. The uploader only works when i send it like this: Server: '{"name":"file.png","file":"filename","type":"form-data"}' But the answer is: Client: "'{\"name\":\"file.png\",\"file\":\"filename\",\"type\":\"form-data\"}'" So i think there are two possible ways to solve this problem: A. Fixing it on the

Dojo Dgrid - Use remaining space in block

百般思念 提交于 2019-12-25 12:45:19
问题 I have a block like this: <div class="container"> <div class="someStuff">Some stuff of unknown height</div> <div class="myDGrid" data-dojo-attach-point="dgrid"></div> </div> The DGrid is started like this: new (declare([OnDemandGrid, DijitRegistry]))({ store: ..., columns: ... }, this.dgrid); Requirements: The container block has some height. The someStuff block has some height that is dynamically set. The myDGrid block contains a Dojo DGrid. It should use the remainder of the space in

How to open dialog or popup when clicking on a cell in Dojo Dgrid

馋奶兔 提交于 2019-12-25 12:33:51
问题 I want to open a dialog box when clicking on a cell.I am using dgrid/editor. editor({field: "column1",label: "col1",editor: "text",editOn: "click"}) I am getting text box when using the above code.I want a dialog box.Please tell me how to get a dialog box.I am using OndemandGrid with JSONReststore to display the grid. 回答1: You don't need use editor to trigger a dialog, use click event on a cell is ok: var grid = new declare([OnDemandGrid,Keyboard, Selection])({ store: Observable(new Memory(

How to open dialog or popup when clicking on a cell in Dojo Dgrid

ⅰ亾dé卋堺 提交于 2019-12-25 12:33:28
问题 I want to open a dialog box when clicking on a cell.I am using dgrid/editor. editor({field: "column1",label: "col1",editor: "text",editOn: "click"}) I am getting text box when using the above code.I want a dialog box.Please tell me how to get a dialog box.I am using OndemandGrid with JSONReststore to display the grid. 回答1: You don't need use editor to trigger a dialog, use click event on a cell is ok: var grid = new declare([OnDemandGrid,Keyboard, Selection])({ store: Observable(new Memory(

Transform Javascript code to JSON and vice versa

ぃ、小莉子 提交于 2019-12-25 10:49:10
问题 I'm working on a small project in which I will work with dgrid dojo, the dgrid must be customized according to the profile of the person if he's administrator or simple user. The dgrid will be filled from a REST service, and I had the idea to not only fill the dgrid but also customize it with textbox, buttons and checkbox. For example here is the code of a dgrid with 2 columns whose fields can not be changed: window.Grid= new StandardGrid({ sort: "abbreviation", store: stateStore(), columns:

Moving nodes within a Dijit Tree

[亡魂溺海] 提交于 2019-12-25 09:19:52
问题 I am using a tree as an input tool to allow the user to organize categories. I would like the users to be able to move the nodes around at the top level, specifically reordering them under the same parent. Everything looks fine until it is time for the store to be updated - the display is wrong - the moved item is not shown in the right place. require([ "dojo/aspect", "dojo/store/Memory", "dojo/store/Observable", "dijit/Tree", "dijit/tree/ObjectStoreModel", "dijit/tree/dndSource", "dojo