dojo

Paging is not working, using JsonRest with EnhancedGrid

妖精的绣舞 提交于 2019-12-24 17:48:00
问题 I'm creating widget for IBM BusinessSpace, and I'm having some difficulties with paging. Data are succesfully returned from database (using restlet) and displayed in a grid. Navigation is also displayed below the grid (next page, previous page, go to page, number of pages, etc). If I, for example, have 3 pages, 5 rows per page, and want to navigate to second page, when I click on the page number 2, data reloads (it seems like restlet is called again), and first 5 rows (displayed on the first

How to include legacy module in Dojo AMD

天大地大妈咪最大 提交于 2019-12-24 15:24:56
问题 I'm trying to migrate an application from dojo 1.6 to version 1.9.1, and I've a legacy module that I didn't want to migrate yet (it's pretty complex and will take me some time to understand). The Dojo docs indicate you can load legacy modules along with AMD modules, but when I try, I'm getting a "dojo.provide is not a function" when the loader tries to load the legacy module. My script: require([..., "agsjs/dijit/TOC","dojo/domReady!"], function(..., TOC) { on(map,'layers-add-result',function

Dojo widgets not loading in FireFox

佐手、 提交于 2019-12-24 15:13:56
问题 We are having an issue loading dojo widgets in our application. The dojo library is uploaded to web publisher and its folder structure is like- www.wp-mydemopath.com/web/fw/tools/ssue/ui/1.6/auessome/dojo We are loading the dojo componets in a jsp that is common across all the pages. We are loading the dojo components in the following way- djConfig = { isDebug: false, debugAtAllCosts: false, parseOnLoad: true, baseUrl: "http://www.wp-mydemopath.com/web/fw/tools/ssue/ui/1.6/auessome/dojo/",

How do I make my dropdowns (form:select) required with Spring and Dojo?

戏子无情 提交于 2019-12-24 14:48:48
问题 How do I make my dropdowns (form:select) required with Spring and Dojo?. I am working on a Spring project with Dojo to make my pages look nice. I have the input fields working but now one of my pages has a dropdown on it. How can I make the dropdown like the my dojo inputs and how do I make it required. please see code below... <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%> <%@ taglib prefix="form" uri="http://www

Is there any widget in Dojo similar to JPanel in Java

半腔热情 提交于 2019-12-24 14:09:38
问题 is there any widget in Dojo similar to JPanel in Java ( to load image , some text above and buttons at bottom ) or I need to use div ? 回答1: Dijit (Dojo's widget toolkit) offers some container and layout widgets, such as BorderContainer which provides specific layout patterns, but Dijit generally doesn't try to wrap HTML concepts. If you just need simple controls, use HTML and CSS. Perhaps you should just be using DIVs here. Dijit does provide a container widget for HTML called ContentPane,

How to check for multiple undefined in dojo or JavaScript?

岁酱吖の 提交于 2019-12-24 13:52:55
问题 I have the below piece of code in my project. As you can see, I had to check the undefined for all the object and properties this.view && this.view.formView && this.view.formView._dapSections && this.view.formView._dapSections.scrollTop . I'm looking for a way to check undefined for all at once.Is there any way to do that in JavaScript or dojo? if(this.view && this.view.formView && this.view.formView._dapSections && this.view.formView._dapSections.scrollTop) { globals.lastScrollPosition =

Issue with dojo confirm dialog widget called from jsp

本小妞迷上赌 提交于 2019-12-24 12:54:43
问题 I have the following widget: FruitWidget.html <div data-dojo-type="dijit/ConfirmDialog" data-dojo-attach-point="fruitWarningDialog" data-dojo-props="title:'Timeout Warning'" data-dojo-attach-event="execute:printTimeout"> Press ok to print something! </div> FruitWidget.js define([ "dojo/_base/declare", "dijit/ConfirmDialog", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dojo/text!./templates/FruitWidget.html" ], function(declare, ConfirmDialog, _WidgetBase,

Load and use Dojo widget from jQuery

坚强是说给别人听的谎言 提交于 2019-12-24 12:44:10
问题 I know that there are a lot of questions on the forum about the subject but I still can't find the answer... I have the JS application based on jQuery. Now I have to do some integration some widget based on Dojo. I want to load Dojo and the widget only when it's necessary, so want to do this asynchronously. I have the Dojo stored on my site, so load it from my space. Here is the code that I try to use in jQuery: $.getScript("/Content/3rd/dojo/dojo/dojo.js") .done(function (script, textStatus)

combobox and Value collided

守給你的承諾、 提交于 2019-12-24 11:14:31
问题 I am using the dojo combobox together with json. I have the error : Items within the list have identifier: [id]. Value collided: [48] If I look at my raw json, I only have two objects which id is 41 and 48 but when I look at my ItemFileReadStore i have four objects, one of them is the object with id=41 and the three others are the same duplicated objects with id=48 the method is use for the ItemFileReadStore is : var store = new dojo.data.ItemFileReadStore( { data: { identifier: "id", items:

combobox and Value collided

只愿长相守 提交于 2019-12-24 11:11:12
问题 I am using the dojo combobox together with json. I have the error : Items within the list have identifier: [id]. Value collided: [48] If I look at my raw json, I only have two objects which id is 41 and 48 but when I look at my ItemFileReadStore i have four objects, one of them is the object with id=41 and the three others are the same duplicated objects with id=48 the method is use for the ItemFileReadStore is : var store = new dojo.data.ItemFileReadStore( { data: { identifier: "id", items: