Hey,
yes to all your questions. You are on the right track. We do have some code for
you to check out how the REST data store could be used:
http://demo.qooxdoo.org/current/demobrowser/#data~Github.html
http://demo.qooxdoo.org/1.6/github/
Maybe thats helps you to continue,
Martin
Am 15.03.2012 um 22:16 schrieb Leon Woestenberg:
Hello,
On Thu, Mar 15, 2012 at 12:19 PM, Leon Woestenberg
<[email protected]<mailto:[email protected]>> wrote:
On Wed, Mar 14, 2012 at 2:42 PM, Martin Wittemann
<[email protected]<mailto:[email protected]>> wrote:
Backend -- Rpc -- Store -- Model -- Controller -- View
http://manual.qooxdoo.org/1.6/pages/data_binding/stores.html#combining-with-controllers
Yes thats exactly the approach. Try to keep the store away from the view /
controller and see the Model as an independent layer between them. That way,
you can have different kind of views on the same data e.g.
I do not feel confident in any way yet on how to approach this, especially how
I interconnect a model and store.
Up to the model, this is all straight-forward:
// create a form with two widgets
var form = new qx.ui.form.Form();
var textField = new qx.ui.form.TextField("acb");
var checkBox = new qx.ui.form.CheckBox("box");
form.addGroupHeader("Name");
form.add(textField, "textField");
form.add(checkBox, "checkBox");
// add the form renderer to the root document
this.getRoot().add(new qx.ui.form.renderer.Single(form), {left: 10, top:
10});
// a form is available as 'form'
// create the controller
var formController = new qx.data.controller.Form(null/*model*/,
form/*target*/);
// create the model
var model = formController.createModel();
At first shot, what I think is enough, is that the Store request the model to
be fetched from the remote JSON-RPC server, and thereafter the Qooxdoo client
writes form updates to the server on each change.
So do I have to implement a new Store class?
A model is bi-directional with it's view, right?
Can a store be made bi-directional? Can it receive updates from the remote site
(for example through REST polling), and from the model?
I have looked at the REST store implementation, but I am confused on how things
work.
Regards,
Leon.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel