Dojo JsonRest将& name = *附加到目标URL [英] Dojo JsonRest appends &name=* to target URL

查看:246
本文介绍了Dojo JsonRest将& name = *附加到目标URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Dojo JsonRest填充一个dijit.form.select框,我使用以下代码:

I try to use the Dojo JsonRest to fill a dijit.form.select Box and I use the following code:

var stateStore =新的JsonRest({target:ip-address / activiti-rest / service / repository / process-definitions?startableByUser = kermit,headers:{Authorization:Basic a2VybWl0Omtlcm1pdA ==}})

问题是,目标网址扩展为& name = *
因此,服务器看到以下请求: ipaddress / activiti-rest / service / repository / process-definitions?startableByUser = kermit& name = *

The Problem is, that the target-url is extended with &name=* Therefore, the Server sees the following request: ipaddress/activiti-rest/service/repository/process-definitions?startableByUser=kermit&name=*

我无法弄清楚& name = * 来自哪里。

I can not figure out where the &name=* comes from.

我阅读了这篇文章: http://dojo-toolkit.33424.n3.nabble.com/dojox-data-JsonRestStore-appends-quot -Title-to-my-target-url-why-td2012228.html ,并使用allowNoTrailingSlash-Attribute而不成功。

I read this article: http://dojo-toolkit.33424.n3.nabble.com/dojox-data-JsonRestStore-appends-quot-Title-quot-to-my-target-url-why-td2012228.html and used the allowNoTrailingSlash-Attribute without success.

我的问题是如何避免目标网址被更改。我们必须避免在URL的末尾附加& name = *

My question is how I can avoid that the target url gets altered. We must avoid that &name=* gets attached at the end of the url.

谢谢abd最好的问候

推荐答案

这是我的错,因为我使用dijit / form / FilteringSelect而不是dijit / form / Select。 FilteringSelect允许您键入字母。那些字母被附加到url。

It was my fault because I used dijit/form/FilteringSelect instead of dijit/form/Select. FilteringSelect allows you to type in letters. Those letters were appended to the url.

这篇关于Dojo JsonRest将& name = *附加到目标URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆