Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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)

dojox.wire.ml.Service.patch (592 bytes) - added by Jared Jurkiewicz 12 years ago.
Patch provided from a co-worker. Covered under same CLA as I am.

Download all attachments as: .zip

Change History (8)

Changed 12 years ago by Jared Jurkiewicz

Attachment: dojox.wire.ml.Service.patch added

Patch provided from a co-worker. Covered under same CLA as I am.

comment:1 Changed 12 years ago by Jared Jurkiewicz

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:2 Changed 12 years ago by Jared Jurkiewicz

(In [12025]) Minor update to wire code. refs #5579

comment:3 Changed 12 years ago by Jared Jurkiewicz

(In [12026]) Minor update to wire code, ut. refs #5579

comment:4 Changed 12 years ago by Jared Jurkiewicz

(In [12027]) Minor fix/improvement for wire. refs #5579

comment:5 Changed 12 years ago by Jared Jurkiewicz

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 Jared Jurkiewicz

Resolution: fixed
Status: newclosed

comment:7 Changed 12 years ago by (none)

Milestone: 1.0.3

Milestone 1.0.3 deleted

Note: See TracTickets for help on using tickets.