"xforms:submission validate=true" for only one instance ?

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

"xforms:submission validate=true" for only one instance ?

ricetrac

Hello,

 

I have several "instance" in my form on which I declared constraints  with  several <xforms:bind>.

I use the component "fr: error-summary" to display errors, and I indeed have all the errors of every instance which display.

 

But when I submit my form by calling a <xforms:submission >, there is only my "main" instance which is validated.

If I have errors on the other instances, that does not block the submission.

 

I join an example in this mail.

 

Thank you.

 

 

 


Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

--
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
OW2 mailing lists service home page: http://www.ow2.org/wws

exampleMultiinstance.xml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "xforms:submission validate=true" for only one instance ?

Alessandro  Vernet
Administrator
Julien,

This is how it is supposed to work; the <xforms:submission> only
blocks is the instance being submitted is invalid. You could use
xxforms:valid() on every instance you care about before running the
submission. Or since you are using the <fr:error-summary>, you can use
the valid-ref attribute and the error summary will tell you if
everything you care about is valid.

Alex

2010/7/27 Bittard, Julien <[hidden email]>:

> Hello,
>
>
>
> I have several "instance" in my form on which I declared constraints  with
>  several <xforms:bind>.
>
> I use the component "fr: error-summary" to display errors, and I indeed have
> all the errors of every instance which display.
>
>
>
> But when I submit my form by calling a <xforms:submission >, there is only
> my "main" instance which is validated.
>
> If I have errors on the other instances, that does not block the submission.
>
>
>
> I join an example in this mail.
>
>
>
> Thank you.
>
>
>
>
>
>
>
> Please help Logica to respect the environment by not printing this email /
> Pour contribuer comme Logica au respect de l'environnement, merci de ne pas
> imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen
> Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a
> respeitar o ambiente não imprimindo este correio electrónico. This e-mail
> and any attachment is for authorised use by the intended recipient(s) only.
> It may contain proprietary material, confidential information and/or be
> subject to legal privilege. It should not be copied, disclosed to, retained
> or used by, any other party. If you are not an intended recipient then
> please promptly delete this e-mail and any attachment and all copies and
> inform the sender. Thank you.
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: "xforms:submission validate=true" for only one instance ?

ricetrac
Ok, I understand.
But, how is determined which "instance" will be submitted ?
It's in the declaration of <xforms:group> ? : <xforms:group ref="instance('main')" id="main-group">

Thank You.

Julien.


-----Message d'origine-----
De : Alessandro Vernet [mailto:[hidden email]]
Envoyé : mercredi 28 juillet 2010 23:39
À : ops-users
Objet : [ops-users] Re: "xforms:submission validate=true" for only one instance ?

Julien,

This is how it is supposed to work; the <xforms:submission> only blocks is the instance being submitted is invalid. You could use
xxforms:valid() on every instance you care about before running the submission. Or since you are using the <fr:error-summary>, you can use the valid-ref attribute and the error summary will tell you if everything you care about is valid.

Alex

2010/7/27 Bittard, Julien <[hidden email]>:

> Hello,
>
>
>
> I have several "instance" in my form on which I declared constraints  
> with
>  several <xforms:bind>.
>
> I use the component "fr: error-summary" to display errors, and I
> indeed have all the errors of every instance which display.
>
>
>
> But when I submit my form by calling a <xforms:submission >, there is
> only my "main" instance which is validated.
>
> If I have errors on the other instances, that does not block the submission.
>
>
>
> I join an example in this mail.
>
>
>
> Thank you.
>
>
>
>
>
>
>
> Please help Logica to respect the environment by not printing this
> email / Pour contribuer comme Logica au respect de l'environnement,
> merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht
> nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /
> Por favor ajude a Logica a respeitar o ambiente não imprimindo este
> correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only.
> It may contain proprietary material, confidential information and/or
> be subject to legal privilege. It should not be copied, disclosed to,
> retained or used by, any other party. If you are not an intended
> recipient then please promptly delete this e-mail and any attachment
> and all copies and inform the sender. Thank you.
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet

Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: "xforms:submission validate=true" for only one instance ?

Alessandro  Vernet
Administrator
Julien,

The instance submitted is determined based on what you put in the ref
attribute of the <xforms:submission>, for instance
ref="instance('that-instance')". If there is no ref attribute, then
the first instance of the current model is submitted.

Alex

On Thu, Jul 29, 2010 at 1:06 AM, Bittard, Julien
<[hidden email]> wrote:

> Ok, I understand.
> But, how is determined which "instance" will be submitted ?
> It's in the declaration of <xforms:group> ? : <xforms:group ref="instance('main')" id="main-group">
>
> Thank You.
>
> Julien.
>
>
> -----Message d'origine-----
> De : Alessandro Vernet [mailto:[hidden email]]
> Envoyé : mercredi 28 juillet 2010 23:39
> À : ops-users
> Objet : [ops-users] Re: "xforms:submission validate=true" for only one instance ?
>
> Julien,
>
> This is how it is supposed to work; the <xforms:submission> only blocks is the instance being submitted is invalid. You could use
> xxforms:valid() on every instance you care about before running the submission. Or since you are using the <fr:error-summary>, you can use the valid-ref attribute and the error summary will tell you if everything you care about is valid.
>
> Alex
>
> 2010/7/27 Bittard, Julien <[hidden email]>:
>> Hello,
>>
>>
>>
>> I have several "instance" in my form on which I declared constraints
>> with
>>  several <xforms:bind>.
>>
>> I use the component "fr: error-summary" to display errors, and I
>> indeed have all the errors of every instance which display.
>>
>>
>>
>> But when I submit my form by calling a <xforms:submission >, there is
>> only my "main" instance which is validated.
>>
>> If I have errors on the other instances, that does not block the submission.
>>
>>
>>
>> I join an example in this mail.
>>
>>
>>
>> Thank you.
>>
>>
>>
>>
>>
>>
>>
>> Please help Logica to respect the environment by not printing this
>> email / Pour contribuer comme Logica au respect de l'environnement,
>> merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht
>> nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /
>> Por favor ajude a Logica a respeitar o ambiente não imprimindo este
>> correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only.
>> It may contain proprietary material, confidential information and/or
>> be subject to legal privilege. It should not be copied, disclosed to,
>> retained or used by, any other party. If you are not an intended
>> recipient then please promptly delete this e-mail and any attachment
>> and all copies and inform the sender. Thank you.
>>
>> --
>> 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
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>
> Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.
>
>
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: RE: Re: "xforms:submission validate=true" for only one instance ?

ricetrac

Alex,

Thank You for your response.
Have a nice week end.

Julien.

-----Message d'origine-----
De : Alessandro Vernet [mailto:[hidden email]]
Envoyé : jeudi 29 juillet 2010 20:33
À : ops-users
Objet : [ops-users] Re: RE: Re: "xforms:submission validate=true" for only one instance ?

Julien,

The instance submitted is determined based on what you put in the ref attribute of the <xforms:submission>, for instance ref="instance('that-instance')". If there is no ref attribute, then the first instance of the current model is submitted.

Alex

On Thu, Jul 29, 2010 at 1:06 AM, Bittard, Julien <[hidden email]> wrote:

> Ok, I understand.
> But, how is determined which "instance" will be submitted ?
> It's in the declaration of <xforms:group> ? : <xforms:group
> ref="instance('main')" id="main-group">
>
> Thank You.
>
> Julien.
>
>
> -----Message d'origine-----
> De : Alessandro Vernet [mailto:[hidden email]] Envoyé : mercredi
> 28 juillet 2010 23:39 À : ops-users Objet : [ops-users] Re:
> "xforms:submission validate=true" for only one instance ?
>
> Julien,
>
> This is how it is supposed to work; the <xforms:submission> only
> blocks is the instance being submitted is invalid. You could use
> xxforms:valid() on every instance you care about before running the submission. Or since you are using the <fr:error-summary>, you can use the valid-ref attribute and the error summary will tell you if everything you care about is valid.
>
> Alex
>
> 2010/7/27 Bittard, Julien <[hidden email]>:
>> Hello,
>>
>>
>>
>> I have several "instance" in my form on which I declared constraints
>> with
>>  several <xforms:bind>.
>>
>> I use the component "fr: error-summary" to display errors, and I
>> indeed have all the errors of every instance which display.
>>
>>
>>
>> But when I submit my form by calling a <xforms:submission >, there is
>> only my "main" instance which is validated.
>>
>> If I have errors on the other instances, that does not block the submission.
>>
>>
>>
>> I join an example in this mail.
>>
>>
>>
>> Thank you.
>>
>>
>>
>>
>>
>>
>>
>> Please help Logica to respect the environment by not printing this
>> email / Pour contribuer comme Logica au respect de l'environnement,
>> merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht
>> nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /
>> Por favor ajude a Logica a respeitar o ambiente não imprimindo este
>> correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only.
>> It may contain proprietary material, confidential information and/or
>> be subject to legal privilege. It should not be copied, disclosed to,
>> retained or used by, any other party. If you are not an intended
>> recipient then please promptly delete this e-mail and any attachment
>> and all copies and inform the sender. Thank you.
>>
>> --
>> 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
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
>
> --
> Orbeon Forms - Web forms, open-source, for the Enterprise -
> http://www.orbeon.com/ My Twitter: http://twitter.com/avernet
>
> Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.
>
>
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet

Please help Logica to respect the environment by not printing this email  / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. /  Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.




--
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
OW2 mailing lists service home page: http://www.ow2.org/wws