W3C home > Mailing lists > Public > public-forms@w3.org > May 2008

Re: what happens if someone puts a model inside a form tag?

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Fri, 16 May 2008 15:36:54 -0700
Message-Id: <43FEF2BC-E14C-400A-8039-37A95D83826C@orbeon.com>
To: "public-forms (new)" <public-forms@w3.org>

It depends who defines what "main use" is.

We heavily use models as an encapsulation of reusable functionality  
within forms. Want persistence? Include the persistence model. Want an  
error summary? Include the error summary model (plus view). And we  
have numerous situations were models do need to talk to each other,  
and they do, sometimes through extensions.

But even without extensions, since ids are global in a document,  
nothing AFAIK prevents a model to call <xforms:send  
submission="foobar"/>, where foobar is an id in another model.  
(Anyway, we do have issues with ids in XForms, and as I suggested we  
should start using names rather than ids to increase encapsulation.)

-Erik

On May 16, 2008, at 3:24 PM, John Boyer wrote:

>
> Perhaps, though the main use AFAIK for multiple models in an HTML  
> page is multiple forms, which is why models don't talk to each other.
>
> I would expect that an HTML page that contained multiple form tags  
> would not require use of the model attribute in any of the forms  
> because the (first) model in the form tag is merged with the  
> implicit model.
>
> So this is another bit  of change from current practice in XForms 1.1.
>
> Still, allowing multiple models within a form tag is possible but  
> will cause the author to learn the model attribute and will cause  
> confusion among people who don't realize that if they have two model  
> that they want to talk to each other, then what they have is one  
> model.
>
> Cheers,
> John M. Boyer, Ph.D.
> Senior Technical Staff Member
> 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
> Blog RSS feed: http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw
>
>
>
>
> Erik Bruchez <ebruchez@orbeon.com>
> Sent by: public-forms-request@w3.org
> 05/15/2008 04:45 PM
>
> To
> "public-forms (new)" <public-forms@w3.org>
> cc
> Subject
> Re: what happens if someone puts a model inside a form tag?
>
>
>
>
>
>
> > I think it is reasonable to say that a single form tag should not
> > have more than one model element child.
>
> Mmmh, I think that would be an unnecessary limitation.
>
> -Erik
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/
Received on Friday, 16 May 2008 22:37:37 UTC

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