Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I bind forms to a Dojo data store?

Tags:

dojo

All the documentation for Dojo data store seems to point to the use of data stores for arrays or tables of data (for use in grid, for example).

Do Dojo data stores cater for form data? Can you bind a form, or in fact individual input fields to a Dojo data store? Is there any documentation with examples for this?

To clarify my question: I would like to benefit from the two-way updates and validations that you can implement with the dojo data stores, not just gather all the values from a form.

Alternatively, perhaps I am asking the wrong question. Perhaps a data store is not what I am looking for. Does Dojo provide any other concept for model binding?

like image 533
mydoghasworms Avatar asked Aug 23 '11 19:08

mydoghasworms


1 Answers

It looks like what I am looking for is described in the links below, but this is not available yet. (According to this TRAC ticket: http://bugs.dojotoolkit.org/ticket/12314, only in version 1.7).

This will form part of the dojox.mvc package of Dojo (see http://svn.dojotoolkit.org/src/dojox/trunk/mvc/README), so while it can probably be used, it is still under development and for that matter experimental.

http://doughays.dojotoolkit.org/patterns/data_bound_widgets.html

http://chrism.dojotoolkit.org/dojomvc/

like image 86
mydoghasworms Avatar answered Sep 22 '22 14:09

mydoghasworms