Hello,

I was thinking about some enhancements about the forms handling. I also have
a little question about form models serialization. 

The form controller
-----------------------

I remember I already requested something similar but I can no longer found
the topic on this forum. 

Sometimes, it's rather useful to create some hierarchy inside forms. For
instance, with codes like this :

...
form.add(formitem, "Label", null, "items.item1");
...


and the form controller will then create the associate "map model" with the
specified hierarchy automatically.

I was wondering if you - I suppose Martin is more likely to be in charge of
it :) - can also take into account arrays. For instance, by dealing with
this kind of code:

... 
form.add(formitem, "Label", null, "items[0]");
form.add(formitem2, "Label2", null, "items[1]");
...

or even better:

...
form.add(formitem, "Label", null, "items[]");
form.add(formitem2, "Label2", null, "items[]");
...

Because when the serializer is called, the following code 

...
form.add(formitem, "Label", null, "items.0");
...

will be transformed into this:

{items:{'0':somevalue ...}} and not {items:[somevalue,...]}.

That's a bit problematic then when remote requests are send to server.

Form item placeholders
-----------------------------

I was wondering if it was possible to show placeholders even if the form
elements are disabled.


Form Model Serialization
------------------------------

The form model serialization functions are really useful but I was wondering
how I could automatically ignore unchecked radio buttons or checkboxes.

Because the serialisation operation returns the entire model - what sounds
logical to me. But it is a bit annoying to get the "false" values too. After
the serialisation process, I am always forced to inspect the entire
generated object again and remove the false values. This kind of problem is
also relevant for disabled form elements. 

...


Voilà, I think it's all for now :)

Have a nice day,

Best,

Benoît.
-- 
View this message in context: 
http://n2.nabble.com/Discussion-about-forms-controller-value-retrieval-tp4889378p4889378.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to