Multiple Model Problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple Model Problem

Ryan Puddephatt

Hi all,

            I have two models in an application and I want to put an instance in each model with the same ID, is this possible? At the moment I’m getting an error, but I don’t know if this is because of a bug or my bad understanding of the xforms spec

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

AW: Multiple Model Problem

Oliver Charlet
Ryan,
 
XML does not permit to have the same ID of an element in the same document. Since the document here is the whole XForm, what you try to do is not possible. The question here is why you want to have two instances with the same information. This is surely redundant and should be avoided. In my personal view the notion of multi model is an arkward thing, since the XForms Spex AFAIK does not specify, why one should or should not use more than one model. Since we don't know, we should concider not to use more then one model.
Why are you trying to do that anyway?
 
:olli


Von: Ryan Puddephatt [mailto:[hidden email]]
Gesendet: Mittwoch, 12. Juli 2006 12:21
An: [hidden email]
Betreff: [ops-users] Multiple Model Problem

Hi all,

            I have two models in an application and I want to put an instance in each model with the same ID, is this possible? At the moment I’m getting an error, but I don’t know if this is because of a bug or my bad understanding of the xforms spec

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Multiple Model Problem

Ryan Puddephatt

The application has linked properties across several pages, so some we use xi:include to reduce coding, I was just trying to use my instance-debugger across multiple models, but I can change the names of the instances. Its not a problem.

 

I have another question, I have an xforms:group and I want to put @model=”main-model”, this causes an error, is this also incorrect use of multiple models or just not supported?

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 


From: oliver charlet [mailto:[hidden email]]
Sent: 12 July 2006 11:33
To: [hidden email]
Subject: AW: [ops-users] Multiple Model Problem

 

Ryan,

 

XML does not permit to have the same ID of an element in the same document. Since the document here is the whole XForm, what you try to do is not possible. The question here is why you want to have two instances with the same information. This is surely redundant and should be avoided. In my personal view the notion of multi model is an arkward thing, since the XForms Spex AFAIK does not specify, why one should or should not use more than one model. Since we don't know, we should concider not to use more then one model.

Why are you trying to do that anyway?

 

:olli

 


Von: Ryan Puddephatt [mailto:[hidden email]]
Gesendet: Mittwoch, 12. Juli 2006 12:21
An: [hidden email]
Betreff: [ops-users] Multiple Model Problem

Hi all,

            I have two models in an application and I want to put an instance in each model with the same ID, is this possible? At the moment I’m getting an error, but I don’t know if this is because of a bug or my bad understanding of the xforms spec

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: AW: Multiple Model Problem

Erik Bruchez
Administrator
In reply to this post by Oliver Charlet
Oliver,

 > In my personal view the notion of multi model is an arkward thing,
 > since the XForms Spex AFAIK does not specify, why one should or
 > should not use more than one model. Since we don't know, we should
 > concider not to use more then one model.

You are right that use cases for using multiple XForms models are not
well defined, and they would deserve being explicited by the XForms
working group based on user feedback.

We actually had discussions about this before with Ryan, and one
scenario where we used two models was in order to create a reusable
"resources" model, containing resources used by several pages. In the
end, I was not convinced that this was the right choice, although to
be fair issues mainly arised because of the evaluation context in the
controls (but that's another story!).

I just sent a question to www-forms to try to see if people have good
use case for using multiple models.

-Erik

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





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

AW: AW: Multiple Model Problem

Oliver Charlet
Yeah, that makes sense.

But meanwhile, of course it should be said, that of course Ryan has always
the choice to use IDREF(S) to solve the problem of having elements with the
same ID. So one model (the lookup model) could hold the original instances
of the elements using Ids, while the "working model" could simply hold
elements refering to those in the first.

I am not quite sure, how relevant that is to you Ryan, since I don't know
exactly what you are up to...


> -----Ursprüngliche Nachricht-----
> Von: Erik Bruchez [mailto:[hidden email]] Im Auftrag von
> Erik Bruchez
> Gesendet: Mittwoch, 12. Juli 2006 15:13
> An: [hidden email]
> Betreff: Re: AW: [ops-users] Multiple Model Problem
>
> Oliver,
>
>  > In my personal view the notion of multi model is an
> arkward thing,  > since the XForms Spex AFAIK does not
> specify, why one should or  > should not use more than one
> model. Since we don't know, we should  > concider not to use
> more then one model.
>
> You are right that use cases for using multiple XForms models
> are not well defined, and they would deserve being explicited
> by the XForms working group based on user feedback.
>
> We actually had discussions about this before with Ryan, and
> one scenario where we used two models was in order to create
> a reusable "resources" model, containing resources used by
> several pages. In the end, I was not convinced that this was
> the right choice, although to be fair issues mainly arised
> because of the evaluation context in the controls (but that's
> another story!).
>
> I just sent a question to www-forms to try to see if people
> have good use case for using multiple models.
>
> -Erik
>
> --
> Orbeon - XForms Everywhere:
> http://www.orbeon.com/blog/
>
>
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Multiple Model Problem

Ryan Puddephatt
In reply to this post by Ryan Puddephatt
All,
    I solved this problem, the XSLT was stripping the id of the model, didn't realise, this now works!
 
Thanks
 
Ryan
 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 


From: Ryan Puddephatt [mailto:[hidden email]]
Sent: 12 July 2006 12:07
To: [hidden email]
Subject: RE: [ops-users] Multiple Model Problem

The application has linked properties across several pages, so some we use xi:include to reduce coding, I was just trying to use my instance-debugger across multiple models, but I can change the names of the instances. Its not a problem.

 

I have another question, I have an xforms:group and I want to put @model=”main-model”, this causes an error, is this also incorrect use of multiple models or just not supported?

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 


From: oliver charlet [mailto:[hidden email]]
Sent: 12 July 2006 11:33
To: [hidden email]
Subject: AW: [ops-users] Multiple Model Problem

 

Ryan,

 

XML does not permit to have the same ID of an element in the same document. Since the document here is the whole XForm, what you try to do is not possible. The question here is why you want to have two instances with the same information. This is surely redundant and should be avoided. In my personal view the notion of multi model is an arkward thing, since the XForms Spex AFAIK does not specify, why one should or should not use more than one model. Since we don't know, we should concider not to use more then one model.

Why are you trying to do that anyway?

 

:olli

 


Von: Ryan Puddephatt [mailto:[hidden email]]
Gesendet: Mittwoch, 12. Juli 2006 12:21
An: [hidden email]
Betreff: [ops-users] Multiple Model Problem

Hi all,

            I have two models in an application and I want to put an instance in each model with the same ID, is this possible? At the moment I’m getting an error, but I don’t know if this is because of a bug or my bad understanding of the xforms spec

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws