Dojo JsonRest appends &name=* to target URL

余生长醉 提交于 2019-12-25 04:28:24

问题


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

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

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=*

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

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.

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.

Thanks abd best regards


回答1:


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.



来源:https://stackoverflow.com/questions/22304954/dojo-jsonrest-appends-name-to-target-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!