Re: Use cases for multiple models

Mark Seaborne wrote:
 > Erik,
 >
 > When I first started using XForms I tended to use multiple models as
 > a convenient packaging device. So I tried to keep "business data +
 > rules" in one model, captions and values for enumerations in
 > another, and instances used to manage presentation logic/control in
 > a third. It just seemed a neat way of working, and I assumed it was
 > one of the reasons for allowing multiple models in one containing
 > document. I know a number of other form authors have independently
 > done exactly the same thing.  However, I subsequently learned that I
 > was in error to do this, and that the favoured approach of the WG
 > was one form, one model. By-the-way, is this actually stated
 > anywhere in the rec.? If not, should it be? I couldn't find anything
 > obvious, although it is hinted at in the section on multiple models
 > in one containing document.

I don't think there is anything in the spec, and that is one reason I
was asking for use cases ;-)

 > Another possibility for multiple models in one form is MarkB and Raman's
 > idea of using complete XForms as form controls. Obviously that isn't
 > catered for at the moment, but it is a neat idea.

Absolutely, this one is a great idea, but for XForms 1.2 or 2.0 ;-)

-Erik

-- 
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/

Received on Thursday, 13 July 2006 14:13:20 UTC