Hey Martin,

Thanks for your patient reply. I have noticed the part describing the
converter options of single value binding after seeing your sample code, but
beforehand I didn't pay much attention to it. Maybe I was simply not
concentrated enough. I think that it is worth mentioning also in the
controller section though, simply so that it will be very clear that it
could be used with a controller as well. I think that some times repetitions
are a good thing, especially when people are using data binding for the
first time.

Regarding the form controller - I'm now trying to set it up to work as I
expect. I have a tree controller in which I linked the "selection[0]"
property to the form controller's model. So far so good. Now if I update the
form, the tree gets updated as well. I set selfUpdate to true, so that I
have more control about when the tree gets updated (it should only after
validation and server update). There I have no problem as well. 
My newest question is - is there a way to reset the form to the selection of
the tree again in case I want to undo the changes? I tried
formController.setModel(treeController.getSelection()[0].getModel()), but it
didn't update the form. I also tried to fire a changeSelection on the tree
(and on the treeController) by using tree.setSelection(tree.getSelection()),
but this also doesn't work.
Lastly I also tried simply form.reset(), but this deletes the data in the
form completely.

Is there an elegant way of achieving this? Perhaps it can be worth while to
add a method to the form controller which undoes the changes (similar to the
one that updates the model), perhaps a one that simply re-reads the
unchanged model?

Thanks,
Omri

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Using-the-treeController-to-generate-a-tree-from-JSON-data-tp6607643p6617633.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to