There's no real concept of a "form" in Cappuccino, and I think we should think about that whenever we decide to move this into the project.
In Cocoa there's a sort of form layout thingy which is basically just a matrix. I'm not sure whether or not we need something like that, though I can see the utility of it (esp. if its generic enough to just create forms based on object introspection, a feature common now in things like rails).
But I'm talking more about making the process of sending "forms" and getting responses. In the HTML world forms have evolved to make certain things pretty easy. Constructing the request to send in Cappuccino right now is a bit of a pain in the ass. It would be nice to have some abstraction which tied into various CPControls and automatically constructed the request in the right form (form-encoded, json, whatever).
We'd want support at the CPControl level I think, and it would probably be in the form of something like a formName property. Anyone have any thoughts on this?
-Ross
The required features are automatically wrapping up the values and submitting the appropriate server request, which probably means adding some sort of form_name property to CPControl, but I'm open to other suggestions. Once we have that, it will be easy to merge in this file upload feature the right way.
Automatic layout for forms is something that *might* be nice to have, but it could also be much more trouble than its worth, especially in a world where everyone is using visual design tools. Still, for things like automatic form generation based on object properties (ala CoreData, though that works only at design time not runtime) it could be useful.