Opened 11 years ago

Closed 10 years ago

#12241 closed defect (fixed)

Content Pane has problems if ioMethod='dojo.xhrPost'

Reported by: cassius.paim Owned by: bill
Priority: high Milestone: 1.8
Component: DojoX Layout Version: 1.5
Keywords: Cc:
Blocked By: Blocking:


I tried to use the ContentPane? widget in declarative way inside a TabContainer?, setting the properties of ContentPane? as bellow:

  • ioMethod='dojo.xhrPost'
  • url=''
  • ioArgs={ content: {iKey=999}}

After that I noticed the parameter iKey was not being received by server side.

Debugging the dojox.layout.ContentPane? class I noticed the constructor of this class is setting ioMethod = dojo.xhrGet, initializing this property per instance and not per class as happens with other properties of this widget as: adjustPaths, cleanContent, renderStyles, executeScripts and scriptHasHooks.

To solve this trouble I uncommented the initialization of ioMethod per class and commented the initialization per instance.

Attachments (1)

ContentPane.js (3.9 KB) - added by cassius.paim 11 years ago.
ContentPane? with the solution

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by cassius.paim

Attachment: ContentPane.js added

ContentPane? with the solution

comment:1 Changed 10 years ago by bill

Milestone: tbd1.8
Owner: set to bill
Status: newassigned

comment:2 Changed 10 years ago by bill

Resolution: fixed
Status: assignedclosed

In [29104]:

Put ioMethod and ioArgs in the prototype, so the parser knows about them. Despite the comment in the code from [9803] that they need to be in the constructor, they seem to work fine in the prototype.

Fixes #12241 !strict.

Note: See TracTickets for help on using tickets.