Hi Dimitri,

I have some hints for you, classes you could look at which could give you
new ideas of how to achieve your goal.

We have a class for serializing models:
http://demo.qooxdoo.org/current/apiviewer/#qx.util.Serializer
With that you can serialize your models easily and send them as one JSON to
the server.

We also have a validation manager which can nicely handle the validation on
client side:
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.form.validation.Manager
With that, you can validate the stuff  in the form fields (also in the
selectBox's) before sending it to the server.

One of the parts you may need is a controller for syncing the data vom the
model to the view:
http://demo.qooxdoo.org/current/apiviewer/#qx.data.controller.Form

Maybe you can take a look at the following demo:
http://demo.qooxdoo.org/current/demobrowser/#data~FormController.html
It shows some of the ides i already mentioned.

I hope that helps!
Best,
Martin


Dimitri Henning wrote:
> 
> Hi, me again, i am planning to do following scenario:
> in formular assistent are some TextField and selectBox widgets. While 
> loading, selectBox widgeta are filled with content using JSON GET. 
> Fields are subscribed to a validator (validator to a controller). So far 
> so nice.
> 
> What i need is: a store for all the data from the formular, with 
> possibiliy to validate (clientside -> filled?) and the possibility to 
> send all (or only a part) of data to the server for validation.
> At the moment iam not exactly aware howto build this construct? The 
> first idea was manually get Values of each Widget, put them into an JSON 
> Array and send it with POST/GET, but this is not really a nice solution.
> 
> Can i use ONE store object for all? Bind each listcontroller for each 
> SelectBox to the store?  Also a controller for a textfield, or put the 
> textfield values in a array and bind like
> a.bind("array[0]", textField, "value"); ? Are different valuation 
> functions for the controller possible?
> 
> Would be appreciate each tip. Code is welcomed =)
> 
> --
> 
> Mit freundlichen Grüßen
> 
> Dimitri Henning
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing. 
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/help-understanding-data-binding-tp4106591p4107236.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to