W3C home > Mailing lists > Public > public-forms@w3.org > October 2007

Re: Quick proposal: method="get" be default on submission element

From: Erik Bruchez <erik@bruchez.org>
Date: Mon, 08 Oct 2007 15:11:27 -0700
Message-ID: <470AAB0F.9040505@bruchez.org>
To: "Klotz, Leigh" <Leigh.Klotz@xerox.com>
CC: John Boyer <boyerj@ca.ibm.com>, Steven Pemberton <steven.pemberton@cwi.nl>, Forms WG <public-forms@w3.org>, public-forms-request@w3.org

It's a tough call.

Most of our use cases at Orbeon involve "post" (more rarely "put") 
because that's how you can send out XML to services out there, and as 
pointed out "get" handles name/value pairs only. Finally, for 
compatibility with HTML forms' common use cases, another reasonable 
default would be "form-data-post".

It doesn't seem that HTML forms have an actual default here, if I read 
correctly:

   http://www.w3.org/TR/html401/interact/forms.html#submit-format

So rather than having a non-obvious default, I am leaning towards 
thinking that maybe we should simply not have a default and make/keep 
the method attribute required.

-Erik

Klotz, Leigh wrote:
> Originally [1] post was the default but it was removed [2] when we 
> changed from submitInfo to submission.
>  
> [1] 
> http://www.w3.org/TR/2002/WD-xforms-20020118/slice3.html#structure-model-submitInfo
> [2] 
> http://www.w3.org/TR/2002/WD-xforms-20020821/slice3.html#structure-model-submission
> 
> ------------------------------------------------------------------------
> *From:* public-forms-request@w3.org [mailto:public-forms-request@w3.org] 
> *On Behalf Of *John Boyer
> *Sent:* Monday, October 08, 2007 7:32 AM
> *To:* Steven Pemberton
> *Cc:* Forms WG; public-forms-request@w3.org
> *Subject:* Re: Quick proposal: method="get" be default on submission element
> 
> 
> Hi Steven,
> 
> Having a default seems like a great idea.
> At first, "get" seemed like a good choice, but then I realized that we 
> are setting the default in such a way that transmission of tag value 
> pairs, not XML, is the default.  From that point of view, wouldn't 
> "post" be the better default?
> 
> Cheers,
> John M. Boyer, Ph.D.
> STSM: Lotus Forms Architect and Researcher
> Chair, W3C Forms Working Group
> Workplace, Portal and Collaboration Software
> IBM Victoria Software Lab
> E-Mail: boyerj@ca.ibm.com  
> 
> Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
> 
> 
> 
> 
> *"Steven Pemberton" <steven.pemberton@cwi.nl>*
> Sent by: public-forms-request@w3.org
> 
> 10/05/2007 07:31 AM
> 
> 	
> To
> 	"Forms WG" <public-forms@w3.org>
> cc
> 	
> Subject
> 	Quick proposal: method="get" be default on submission element
> 
> 
> 	
> 
> 
> 
> 
> 
> 
> While writing examples for the submission section, it struck me that we  
> may as well have *some* default for submission@method, and since it  
> usually seems to be get, I would like to propose that. Then the simplest  
> submission would be something like:
> 
>                 <submission action="http://www.example.com/search" />
> 
> Steven
> 
> 


-- 
Erik Bruchez's Ponderings
http://erik.bruchez.name/
Received on Monday, 8 October 2007 22:11:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:45 UTC