dojo

Struts 2 ajax validation unable to find interceptor class jsonValidationWorkflowStack

烈酒焚心 提交于 2019-12-01 06:33:39
I'm trying to implement ajax validation in my Struts 2 application. I have included struts2-json-plugin in the build path. Whenever I start the server in Eclipse, I get the following error: Unable to find interceptor class referenced by ref-name jsonValidationWorkflowStack - interceptor-ref - file:/C:/path/struts.xml:15:60 This is what my struts.xml looks like: <struts> <constant name="struts.url.includeParams" value="all" /> <constant name="struts.devMode" value="true" /> <package name="default" extends="struts-default"> <action name="submitForm" class="action.FormAction" > <interceptor-ref

How to use dojo toolkit with rails 3.1 asset pipeline and coffeescript?

安稳与你 提交于 2019-12-01 05:50:15
I'm trying to use dojo-toolkit as the JS framework on a rails 3.1 app, but I'm struggling to incorporate the dojo require structure with the sprockets require and coffeescript. It seems dojo expects the JS files on the disk, but I guess they're created on the fly from coffeescript. Wondering if anyone has an idea of how the two require-s can co-exist. karellm I recently had to install dojo with rails 3.1 and the asset pipeline. Here are the steps I followed to make it work: 1/ Include Dojo Put the dojo SDK under vendor/assets/javascripts so you get the dojo, dijit and dojox folder in it.

mailto causing a blank page in IE8 when used with Dojo

对着背影说爱祢 提交于 2019-12-01 05:29:26
问题 For some reason, in IE (IE8 in Win 7 to be precise), when I click on a mailto link, I end up with the current page being replaced by a blank page with mailto in the address bar. Specifically, this is what happens when I click the mailto link: New about:blank tab opens and a security prompt pops up asking if I want to open Outlook. At this point, it looks like the original tab still is showing the original page. When I click "Allow" or "Don't Allow", the new tab closes and the original page is

Struts 2 ajax validation unable to find interceptor class jsonValidationWorkflowStack

落爺英雄遲暮 提交于 2019-12-01 05:05:21
问题 I'm trying to implement ajax validation in my Struts 2 application. I have included struts2-json-plugin in the build path. Whenever I start the server in Eclipse, I get the following error: Unable to find interceptor class referenced by ref-name jsonValidationWorkflowStack - interceptor-ref - file:/C:/path/struts.xml:15:60 This is what my struts.xml looks like: <struts> <constant name="struts.url.includeParams" value="all" /> <constant name="struts.devMode" value="true" /> <package name=

How to implement Dojo autocomplete similar to jQuery UI autocomplete?

偶尔善良 提交于 2019-12-01 04:14:14
Good day, using JSP and jQuery UI I have successfuly implemented autocompletion for a text input. Autocomplete data are retrieved from a database and filtered by 'q' parameter on the server side. It returns all items containing queried string: SELECT name FROM organization WHERE name LIKE '%q%'; Is there a way how to do the same with Dojo? I followed this Dojo tutorial , but when I type for example letter a into the text input the text in the text input get's replaced by first suggestion Ibam and my first letter a is replaced with I from word Ibam . It works strange. Please advise. Vojtech I

How to use dojo toolkit with rails 3.1 asset pipeline and coffeescript?

放肆的年华 提交于 2019-12-01 04:01:26
问题 I'm trying to use dojo-toolkit as the JS framework on a rails 3.1 app, but I'm struggling to incorporate the dojo require structure with the sprockets require and coffeescript. It seems dojo expects the JS files on the disk, but I guess they're created on the fly from coffeescript. Wondering if anyone has an idea of how the two require-s can co-exist. 回答1: I recently had to install dojo with rails 3.1 and the asset pipeline. Here are the steps I followed to make it work: 1/ Include Dojo Put

How to implement Dojo autocomplete similar to jQuery UI autocomplete?

◇◆丶佛笑我妖孽 提交于 2019-12-01 01:50:23
问题 Good day, using JSP and jQuery UI I have successfuly implemented autocompletion for a text input. Autocomplete data are retrieved from a database and filtered by 'q' parameter on the server side. It returns all items containing queried string: SELECT name FROM organization WHERE name LIKE '%q%'; Is there a way how to do the same with Dojo? I followed this Dojo tutorial , but when I type for example letter a into the text input the text in the text input get's replaced by first suggestion Ibam

MultiSelectCombobox issue in dojo

喜你入骨 提交于 2019-12-01 01:16:39
I needed the combobox with checkboxes in front of each option, to select multiple options. I tried using CheckedMultiSelect using "dropdown:true", It shows the value in the combobox like, 2 item(s) selected, 1 item(s) selected,etc when I select items. How to show the values selected in the text area of combobox separated by delimiter?? Should css or HTML or someotherthing has to be changed for checkedMultiSelect?? Thanks in advance. As for your second question, you have to extend dojox.form.CheckedMultiSelect class and override _updateSelection and startup methods: var MyCheckedMultiSelect =

How do I set the width of dijit.form.Select?

谁说我不能喝 提交于 2019-12-01 00:38:05
问题 I have a programmatically generated dijit.form.Select. Unlike most other widgets, the Selects do not offer a resize method like dijit.resize({w: width, h: height}); I have not found a standardized way of setting the width of a select. This is quite bad because the autosizing makes Dialogs "explode" on long select values. Is there a standard way to resize a select I have missed? Or do I have mess with the markup of the select the hard way? Thanks! 回答1: Why wouldn't you simply do this by

How to query a dgrid on multiple columns

帅比萌擦擦* 提交于 2019-12-01 00:24:01
Is it possible to create a dgrid query that will search for a regex string on more than one column? Usually the syntax specifies {column1: "foo", column2: "foo"} but that will look for rows where both column1 AND column2 are "foo". But I want to use the same search string against both columns... is that possible and how would I do it? I need something like {column1 || column2 : "foo"}. phusick You can write your own function as I mentioned in my answer to your previous question Is it possible to filter data in a dgrid like you can in a datagrid ? Or you can use Resource Query Language (RQL) .