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

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

From: Mark Birbeck <mark.birbeck@formsPlayer.com>
Date: Tue, 9 Oct 2007 08:05:04 +0100
Message-ID: <a707f8300710090005l6dadccd5w2dc06802852c65f7@mail.gmail.com>
To: "Erik Bruchez" <erik@bruchez.org>
Cc: "Klotz, Leigh" <Leigh.Klotz@xerox.com>, "John Boyer" <boyerj@ca.ibm.com>, "Steven Pemberton" <steven.pemberton@cwi.nl>, "Forms WG" <public-forms@w3.org>, public-forms-request@w3.org

Hi Erik,

"get" is the default in HTML:

  <http://www.w3.org/TR/html401/interact/forms.html#adef-method>

Combined with a default of @replace="all" it means that, with Steven's
suggestion, we would have almost completely replicated the behaviour
of HTML forms . (We'd also need to add that @action defaults to "" to
really finish it.)

Regards,

Mark

On 08/10/2007, Erik Bruchez <erik@bruchez.org> wrote:
>
> 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/
>
>


-- 
  Mark Birbeck, formsPlayer

  mark.birbeck@formsPlayer.com | +44 (0) 20 7689 9232
  http://www.formsPlayer.com | http://internet-apps.blogspot.com

  standards. innovation.
Received on Tuesday, 9 October 2007 07:05:19 UTC

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