>From the turorials I've seen in the qooxdoo website I come to this
conclusion:

The main *Application.js* file is like a controller (in MVC) but also a
view: *controller because listen on the view and "model"* (in this case a
service) | and a *view because adds widgets to the screen*.
(https://github.com/qooxdoo/qooxdoo/blob/release_2_0_1/component/tutorials/twitter/step3/source/class/twitter/Application.js)

Now I'm seeing myself doing this wrong because I don't really know how to
separate things in a reusable, scalable and testable way. A good view should
contain?:

* *Validation*? Currently I have a "view" that has both qx.ui.form.Form()
and qx.ui.form.validation.Manager().
The question arises because one of the validation is async. As the *async
validation uses a service* therefore I need to use a server callback, which
is a service or a model in MVC. Then all this becomes more coupled than
separated.
Maybe I should be *firing an event* and do the *server call outside the
view*? (in it's controller?)

* *Tables*... I also have a view that contains a table, *instances a model
and have a listener on the model*. (It's a remote model,
qx.ui.table.model.Remote). In this case I don't really have a solution.

Maybe I should have a *custom controller for each view*? therefore I would
be tempted to use a factory in order to create each view so I could abstract
away the view-controller at instancing.

I also found myself of using a *"main manager" to act quite like a
controller but on multiple views* because one change in a view have an
impact on the other. This *act quite like Application.js but it's not a
graphical item*, just a simple class that get as input 4-5 views and based
on their events acts on them.

I would really appreciate your help and suggestion in how to improve my
code.
*Thanks (:*

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/MVC-Qooxdoo-apps-question-tp7580606.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to