You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Vidar Ramdal <vi...@idium.no> on 2008/08/20 17:10:37 UTC

dojo.data.api.Write support

According to https://issues.apache.org/jira/browse/SLING-301?focusedCommentId=12578395#action_12578395
:
... write support for dojo should be implemented.

I have set up a sample page, with a dojo tree widget. I want to be
able to reorder nodes with drag-and-drop, using standard dojo
functionality. The code for the sample page:
 <!-- the node store -->
 <div dojoType="dojox.data.SlingNodeStore" url="/" jsId="nodeStore"></div>

 <!-- the property store -->
 <div dojoType="dojox.data.SlingPropertyStore" url="/"
jsId="propertyStore"></div>

 <div dojoType="dijit.Tree" store="nodeStore" labelAttr="name"
         label="Pop Tarts" jsid="ptTree"
         dndController="dijit._tree.dndSource"
         checkItemAcceptance="poptartCheckItemAcceptance"
         query="{ level: 1 } ">
  </div>

This standard dojo stuff, grabbed from the dojo docs.

When dragging a node to a new location, I get this error message:
"Unimplemented API: dojo.data.api.Write.setValues".

So how, exactly, is the write stuff implemented, and how is it
supposed to be used?

-- 
Vidar S. Ramdal <vi...@idium.no> - http://www.idium.no
Akersgata 16, N-0158 Oslo, Norway