#5579 closed defect (fixed)
<Service> tags for Wire do not handle PUT well.
Reported by: | Jared Jurkiewicz | Owned by: | Jared Jurkiewicz |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | DojoX Wires | Version: | 1.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
<Service> tags for Wire do not handle PUT well.
Reported from a co-worker:
How can I pass both URI and Payload to PUT which needs both? <div dojoType="dojox.wire.ml.Service" id="providerIncentiveServiceDetail" serviceType="JSON"
serviceUrl="/resources/provider/austinEnergy/incentive/{incentiveid}" >
</div>
<div dojoType="dojox.wire.ml.Invocation"
id="updateAction" parameters="updater.content" <!-- Need BOTH URI Append and Payload, seems to only URI append--> object="ServiceDetail?" method="PUT" result="updater.deleteResult" error="updater.errorResult">
</div>
Attachments (1)
Change History (8)
Changed 12 years ago by
Attachment: | dojox.wire.ml.Service.patch added |
---|
comment:1 Changed 12 years ago by
This fixes it as follows (from my co-worker):
I created a simple fix using the second parameter to PUT/POST for URL parameters. For example, you may pass the second parameter for replacing the resource ID variable in "serviceUrl" as like: <div dojoType="dojox.wire.ml.Service" id="service"
serviceType="JSON" serviceUrl="/dojow/dummy/service/{id}"></div>
<div dojoType="dojox.wire.ml.Data" id="data">
<div dojoType="dojox.wire.ml.DataProperty?"
name="content" type="object"> <div dojoType="dojox.wire.ml.DataProperty?"
name="a" value="A"></div>
</div> <div dojoType="dojox.wire.ml.DataProperty?"
name="param" type="object"> <div dojoType="dojox.wire.ml.DataProperty?"
name="id" value="1"></div>
</div>
</div>
<div dojoType="dojox.wire.ml.Invocation"
trigger="button" triggerEvent="onclick" object="service" method="PUT" parameters="data.content,data.param"></div>
comment:5 Changed 12 years ago by
Tested for regression on:
Firefox 2.0.0.11 IE 6 IE 7 Safari B3 Seamonkey 1.1.2
comment:6 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch provided from a co-worker. Covered under same CLA as I am.