Andreas Junghans <[EMAIL PROTECTED]> writes:
> I think we could easily check for invalid combinations. As soon as a user > adds parameters to the body (via the proposed addBodyParameter method), we > can throw an exception in case he sets the content type to anything else > than application/x-www-form-urlencoded. If there's no user-specified content > type, we can default to application/x-www- form-urlencoded. > > If a user sets raw body data (like in the Rpc class), we can throw an > exception when he tries to add body parameters later. In the opposite case > (body parameters first, then setData to set the whole content), we can do > the same. > > Likewise, we can throw an exception when cross-domain is requested and > addBodyParameter is called. That's probably reasonable. I'm not going to work on it right now. I think it fits into the "bigger picture" (see below) that someone should work on at some point. >> Now what to do about Tables where the data is in a model rather than stored >> in the widget? It'll need a data model conversion capability... > > Now that's a completely different topic. This whole thread has to do with > sending things to the server, not with interpreting the results. No, it's not a completely different topic. My original statement was: >>>> Ultimately, it would be nice to have a generic "form" API that allows >>>> generating forms using qooxdoo widgets and having the submission of the >>>> form data be automated (or at least semi-automated)... In regards to the Table, I'm referring to *sending* form data based on what's in the (possibly modified) table, nothing to do with interpreting the results. This, however, _is_ the "bigger picture" and is out of scope, at least for for me right now. Derrell ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
