Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Additional DWR features

Additional DWR features

  • DWR makes it easy to display a "Loading..." indicator.
  • Exposes a pre- and post- hook after some remote operation takes place:
    • DWREngine.setPreHook(function)
    • DWREngine.setPostHook(function)
  • Worried about latency? DWR allows you to batch opereations:
    • DWREngine.beginBatch()
    • DWREngine.endBatch()
  • Race conditions caused by asynchronicity got you down?
    • DWREngine.setOrdered(true) forces serial FIFO execution of DWR requests
  • Once the application is up, you can check all the services/methods exposed at:
    http://[host]:[port]/[context]/dwr/
    
  • You can use DWRUtil.toDescriptiveString(object, level) to investigate the content of the specified object to a certain level. For example,
    // To display ojb1 if obj1 exists, use:
    dojo.debug(DWRUtil.toDescriptiveString(obj, 1);
    
    // If obj1 contains a reference to obj2 and you want to
    // investigate obj2's properties, use:
    dojo.debug(DWRUtil.toDescriptiveString(obj, 2);