Problem with error summary component

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

Problem with error summary component

ricetrac
Hello,
 
I use the error summary component in my page with orbeon nightly build 20100226.
Is it normal that when I load my page, the error summary doesn't appear although there is errors ? (example : the constraint "required" on a field is not respected)
But there is the exclamation mark on this fields with the alert message.
I need to click on the field and click on another field, in order to display the error summary.
 
Thank you for your help.
 
Julien.
 
 
 

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
Reply | Threaded
Open this post in threaded view
|

Re: Problem with error summary component

Erik Bruchez
Administrator
Julien,

The error summary gathers information about which controls are
"visited". Initially, the list of visited controls is empty.

You can make all controls visited by dispatching fr-visit-all to the
error summary :

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components/error-summary-component#TOC-Marking-all-controls-as-visited

-Erik

On Fri, Mar 5, 2010 at 8:59 AM, Bittard, Julien
<[hidden email]> wrote:

> Hello,
>
> I use the error summary component in my page with orbeon nightly build
> 20100226.
> Is it normal that when I load my page, the error summary doesn't appear
> although there is errors ? (example : the constraint "required" on a field
> is not respected)
> But there is the exclamation mark on this fields with the alert message.
> I need to click on the field and click on another field, in order to display
> the error summary.
>
> Thank you for your help.
>
> Julien.
>
>
>
> 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
>
>


--
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: Problem with error summary component

ricetrac
Ok thank you.

But how to dispatch this event on the load of my page ?
 

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]] De la part de Erik Bruchez
Envoyé : vendredi 5 mars 2010 18:24
À : [hidden email]
Objet : [ops-users] Re: Problem with error summary component

Julien,

The error summary gathers information about which controls are "visited". Initially, the list of visited controls is empty.

You can make all controls visited by dispatching fr-visit-all to the error summary :

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-existing-xbl-components/error-summary-component#TOC-Marking-all-controls-as-visited

-Erik

On Fri, Mar 5, 2010 at 8:59 AM, Bittard, Julien <[hidden email]> wrote:

> Hello,
>
> I use the error summary component in my page with orbeon nightly build
> 20100226.
> Is it normal that when I load my page, the error summary doesn't
> appear although there is errors ? (example : the constraint "required"
> on a field is not respected) But there is the exclamation mark on this
> fields with the alert message.
> I need to click on the field and click on another field, in order to
> display the error summary.
>
> Thank you for your help.
>
> Julien.
>
>
>
> 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
>
>
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: Problem with error summary component

ricetrac
I try with an xforms-model-construct-done event in my model, but it doesn't work :

<xforms:action ev:event="xforms-model-construct-done">
       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
</xforms:action>

thank you.

Julien
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Problem with error summary component

Erik Bruchez-3
Do this on xforms-ready instead.

-Erik

On Tue, Mar 9, 2010 at 12:33 AM, ricetrac <[hidden email]> wrote:

>
> I try with an xforms-model-construct-done event in my model, but it doesn't
> work :
>
> <xforms:action ev:event="xforms-model-construct-done">
>       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
> </xforms:action>
>
> thank you.
>
> Julien
> --
> View this message in context: http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p1585663.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>
>


--
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: Re: Problem with error summary component

ricetrac

Thank you, it works fine.

 

I try to display global errors with error summary component. But, although the nodeset is empty, an empty line is displayed.

 

My error summary :

            <fr:error-summary observer="main-group" id="error-summary">

                        <fr:label>Liste des erreurs sur la page</fr:label>

                        <fr:errors nodeset="instance('main')/erreur">

                                <fr:alert ref="."/>

                        </fr:errors>

            </fr:error-summary>

 

The node "erreur" is empty, but I have this result :

 

 

 

 

Thank You.

 

Julien Bittard

 

-----Message d'origine-----
De : Erik Bruchez [mailto:[hidden email]]
Envoyé : mardi 9 mars 2010 23:28
À : [hidden email]
Objet : [ops-users] Re: RE: Re: Problem with error summary component

 

Do this on xforms-ready instead.

 

-Erik

 

On Tue, Mar 9, 2010 at 12:33 AM, ricetrac <[hidden email]> wrote:

> 

> I try with an xforms-model-construct-done event in my model, but it

> doesn't work :

> 

> <xforms:action ev:event="xforms-model-construct-done">

>       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>

> </xforms:action>

> 

> thank you.

> 

> Julien

> --

> View this message in context:

> http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p15

> 85663.html Sent from the Orbeon Forms (ops-users) mailing list archive

> at Nabble.com.

> 

> 

> --

> 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

> 

> 


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
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: RE: Re: Problem with error summary component

Alessandro  Vernet
Administrator
Julien,

Would you have a simple reproducible example that we can run in the
XForms sandbox and use to reproduce this?

Alex

On Wed, Mar 10, 2010 at 1:09 AM, Bittard, Julien
<[hidden email]> wrote:

>
> Thank you, it works fine.
>
>
>
> I try to display global errors with error summary component. But, although the nodeset is empty, an empty line is displayed.
>
>
>
> My error summary :
>
>             <fr:error-summary observer="main-group" id="error-summary">
>
>                         <fr:label>Liste des erreurs sur la page</fr:label>
>
>                         <fr:errors nodeset="instance('main')/erreur">
>
>                                 <fr:alert ref="."/>
>
>                         </fr:errors>
>
>             </fr:error-summary>
>
>
>
> The node "erreur" is empty, but I have this result :
>
>
>
>
>
>
>
>
>
> Thank You.
>
>
>
> Julien Bittard
>
>
>
> -----Message d'origine-----
> De : Erik Bruchez [mailto:[hidden email]]
> Envoyé : mardi 9 mars 2010 23:28
>
> À : [hidden email]
> Objet : [ops-users] Re: RE: Re: Problem with error summary component
>
>
>
> Do this on xforms-ready instead.
>
>
>
> -Erik
>
>
>
> On Tue, Mar 9, 2010 at 12:33 AM, ricetrac <[hidden email]> wrote:
>
> >
>
> > I try with an xforms-model-construct-done event in my model, but it
>
> > doesn't work :
>
> >
>
> > <xforms:action ev:event="xforms-model-construct-done">
>
> >       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
>
> > </xforms:action>
>
> >
>
> > thank you.
>
> >
>
> > Julien
>
> > --
>
> > View this message in context:
>
> > http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p15
>
> > 85663.html Sent from the Orbeon Forms (ops-users) mailing list archive
>
> > at Nabble.com.
>
> >
>
> >
>
> > --
>
> > 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
>
> >
>
> >
>
> 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.

--
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: Re: Problem with error summary component

ricetrac
Hello Alessandro,

I join to this mail a simple reproducible example that you can run in the sandbox.
Thank you.


Alessandro Vernet wrote
Julien,

Would you have a simple reproducible example that we can run in the
XForms sandbox and use to reproduce this?

Alex

On Wed, Mar 10, 2010 at 1:09 AM, Bittard, Julien
<julien.bittard@logica.com> wrote:
>
> Thank you, it works fine.
>
>
>
> I try to display global errors with error summary component. But, although the nodeset is empty, an empty line is displayed.
>
>
>
> My error summary :
>
>             <fr:error-summary observer="main-group" id="error-summary">
>
>                         <fr:label>Liste des erreurs sur la page</fr:label>
>
>                         <fr:errors nodeset="instance('main')/erreur">
>
>                                 <fr:alert ref="."/>
>
>                         </fr:errors>
>
>             </fr:error-summary>
>
>
>
> The node "erreur" is empty, but I have this result :
>
>
>
>
>
>
>
>
>
> Thank You.
>
>
>
> Julien Bittard
>
>
>
> -----Message d'origine-----
> De : Erik Bruchez [mailto:ebruchez@gmail.com]
> Envoyé : mardi 9 mars 2010 23:28
>
> À : ops-users@ow2.org
> Objet : [ops-users] Re: RE: Re: Problem with error summary component
>
>
>
> Do this on xforms-ready instead.
>
>
>
> -Erik
>
>
>
> On Tue, Mar 9, 2010 at 12:33 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> >
>
> > I try with an xforms-model-construct-done event in my model, but it
>
> > doesn't work :
>
> >
>
> > <xforms:action ev:event="xforms-model-construct-done">
>
> >       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
>
> > </xforms:action>
>
> >
>
> > thank you.
>
> >
>
> > Julien
>
> > --
>
> > View this message in context:
>
> > http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p15
>
> > 85663.html Sent from the Orbeon Forms (ops-users) mailing list archive
>
> > at Nabble.com.
>
> >
>
> >
>
> > --
>
> > You receive this message as a subscriber of the ops-users@ow2.org mailing list.
>
> > To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>
> > For general help: mailto:sympa@ow2.org?subject=help
>
> > OW2 mailing lists service home page: http://www.ow2.org/wws
>
> >
>
> >
>
> 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.


--
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 ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
error_summary.xhtml
Reply | Threaded
Open this post in threaded view
|

Re: Re: RE: Re: RE: Re: Problem with error summary component

Alessandro  Vernet
Administrator
Hi Julien,

Thanks for the example. It is showing one line because there is one
global error. I.e. you have a <fr:errors
nodeset="instance('main')/erreur">, and there is an <erreur/> in your
instance.

It doesn't matter that the element is empty; if you don't want the
error, it should either not be there, of you can use a predicate in
the nodeset expression: <fr:errors nodeset="instance('main')/erreur[.
!= '']">.

Alex

On Fri, Mar 12, 2010 at 10:08 AM, ricetrac <[hidden email]> wrote:

>
> Hello Alessandro,
>
> I join to this mail a simple reproducible example that you can run in the
> sandbox.
> Thank you.
>
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> Would you have a simple reproducible example that we can run in the
>> XForms sandbox and use to reproduce this?
>>
>> Alex
>>
>> On Wed, Mar 10, 2010 at 1:09 AM, Bittard, Julien
>> <[hidden email]> wrote:
>>>
>>> Thank you, it works fine.
>>>
>>>
>>>
>>> I try to display global errors with error summary component. But,
>>> although the nodeset is empty, an empty line is displayed.
>>>
>>>
>>>
>>> My error summary :
>>>
>>>             <fr:error-summary observer="main-group" id="error-summary">
>>>
>>>                         <fr:label>Liste des erreurs sur la
>>> page</fr:label>
>>>
>>>                         <fr:errors nodeset="instance('main')/erreur">
>>>
>>>                                 <fr:alert ref="."/>
>>>
>>>                         </fr:errors>
>>>
>>>             </fr:error-summary>
>>>
>>>
>>>
>>> The node "erreur" is empty, but I have this result :
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Thank You.
>>>
>>>
>>>
>>> Julien Bittard
>>>
>>>
>>>
>>> -----Message d'origine-----
>>> De : Erik Bruchez [mailto:[hidden email]]
>>> Envoyé : mardi 9 mars 2010 23:28
>>>
>>> À : [hidden email]
>>> Objet : [ops-users] Re: RE: Re: Problem with error summary component
>>>
>>>
>>>
>>> Do this on xforms-ready instead.
>>>
>>>
>>>
>>> -Erik
>>>
>>>
>>>
>>> On Tue, Mar 9, 2010 at 12:33 AM, ricetrac <[hidden email]>
>>> wrote:
>>>
>>> >
>>>
>>> > I try with an xforms-model-construct-done event in my model, but it
>>>
>>> > doesn't work :
>>>
>>> >
>>>
>>> > <xforms:action ev:event="xforms-model-construct-done">
>>>
>>> >       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
>>>
>>> > </xforms:action>
>>>
>>> >
>>>
>>> > thank you.
>>>
>>> >
>>>
>>> > Julien
>>>
>>> > --
>>>
>>> > View this message in context:
>>>
>>> > http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p15
>>>
>>> > 85663.html Sent from the Orbeon Forms (ops-users) mailing list archive
>>>
>>> > at Nabble.com.
>>>
>>> >
>>>
>>> >
>>>
>>> > --
>>>
>>> > 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
>>>
>>> >
>>>
>>> >
>>>
>>> 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.
>>
>>
>> --
>> 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
>>
>>
> http://n4.nabble.com/file/n1590806/error_summary.xhtml error_summary.xhtml
> --
> View this message in context: http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p1590806.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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: RE: Re: Problem with error summary component

ricetrac
Hi Alessandro,

Ok, but the documentation says :
"If the node-set returned is empty, no global error is displayed."

http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/error-summary-component

Thank you.

Julien.

Alessandro Vernet wrote
Hi Julien,

Thanks for the example. It is showing one line because there is one
global error. I.e. you have a <fr:errors
nodeset="instance('main')/erreur">, and there is an <erreur/> in your
instance.

It doesn't matter that the element is empty; if you don't want the
error, it should either not be there, of you can use a predicate in
the nodeset expression: <fr:errors nodeset="instance('main')/erreur[.
!= '']">.

Alex

On Fri, Mar 12, 2010 at 10:08 AM, ricetrac <julien.bittard@logica.com> wrote:
>
> Hello Alessandro,
>
> I join to this mail a simple reproducible example that you can run in the
> sandbox.
> Thank you.
>
>
>
> Alessandro  Vernet wrote:
>>
>> Julien,
>>
>> Would you have a simple reproducible example that we can run in the
>> XForms sandbox and use to reproduce this?
>>
>> Alex
>>
>> On Wed, Mar 10, 2010 at 1:09 AM, Bittard, Julien
>> <julien.bittard@logica.com> wrote:
>>>
>>> Thank you, it works fine.
>>>
>>>
>>>
>>> I try to display global errors with error summary component. But,
>>> although the nodeset is empty, an empty line is displayed.
>>>
>>>
>>>
>>> My error summary :
>>>
>>>             <fr:error-summary observer="main-group" id="error-summary">
>>>
>>>                         <fr:label>Liste des erreurs sur la
>>> page</fr:label>
>>>
>>>                         <fr:errors nodeset="instance('main')/erreur">
>>>
>>>                                 <fr:alert ref="."/>
>>>
>>>                         </fr:errors>
>>>
>>>             </fr:error-summary>
>>>
>>>
>>>
>>> The node "erreur" is empty, but I have this result :
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Thank You.
>>>
>>>
>>>
>>> Julien Bittard
>>>
>>>
>>>
>>> -----Message d'origine-----
>>> De : Erik Bruchez [mailto:ebruchez@gmail.com]
>>> Envoyé : mardi 9 mars 2010 23:28
>>>
>>> À : ops-users@ow2.org
>>> Objet : [ops-users] Re: RE: Re: Problem with error summary component
>>>
>>>
>>>
>>> Do this on xforms-ready instead.
>>>
>>>
>>>
>>> -Erik
>>>
>>>
>>>
>>> On Tue, Mar 9, 2010 at 12:33 AM, ricetrac <julien.bittard@logica.com>
>>> wrote:
>>>
>>> >
>>>
>>> > I try with an xforms-model-construct-done event in my model, but it
>>>
>>> > doesn't work :
>>>
>>> >
>>>
>>> > <xforms:action ev:event="xforms-model-construct-done">
>>>
>>> >       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
>>>
>>> > </xforms:action>
>>>
>>> >
>>>
>>> > thank you.
>>>
>>> >
>>>
>>> > Julien
>>>
>>> > --
>>>
>>> > View this message in context:
>>>
>>> > http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p15
>>>
>>> > 85663.html Sent from the Orbeon Forms (ops-users) mailing list archive
>>>
>>> > at Nabble.com.
>>>
>>> >
>>>
>>> >
>>>
>>> > --
>>>
>>> > You receive this message as a subscriber of the ops-users@ow2.org
>>> mailing list.
>>>
>>> > To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>>>
>>> > For general help: mailto:sympa@ow2.org?subject=help
>>>
>>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>> >
>>>
>>> >
>>>
>>> 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.
>>
>>
>> --
>> 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 ops-users@ow2.org mailing
>> list.
>> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
>> For general help: mailto:sympa@ow2.org?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
> http://n4.nabble.com/file/n1590806/error_summary.xhtml error_summary.xhtml
> --
> View this message in context: http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p1590806.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?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 ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: RE: Re: RE: Re: Problem with error summary component

Alessandro  Vernet
Administrator
Julien,

But in this case the nodeset is not empty; it contains one node (which
itself doesn't contain any text nodes, but that doesn't make the
nodeset empty).

Alex

On Tue, Mar 16, 2010 at 1:55 AM, ricetrac <[hidden email]> wrote:

>
> Hi Alessandro,
>
> Ok, but the documentation says :
> "If the node-set returned is empty, no global error is displayed."
>
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/error-summary-component
> http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/error-summary-component
>
> Thank you.
>
> Julien.
>
>
> Alessandro  Vernet wrote:
>>
>> Hi Julien,
>>
>> Thanks for the example. It is showing one line because there is one
>> global error. I.e. you have a <fr:errors
>> nodeset="instance('main')/erreur">, and there is an <erreur/> in your
>> instance.
>>
>> It doesn't matter that the element is empty; if you don't want the
>> error, it should either not be there, of you can use a predicate in
>> the nodeset expression: <fr:errors nodeset="instance('main')/erreur[.
>> != '']">.
>>
>> Alex
>>
>> On Fri, Mar 12, 2010 at 10:08 AM, ricetrac <[hidden email]>
>> wrote:
>>>
>>> Hello Alessandro,
>>>
>>> I join to this mail a simple reproducible example that you can run in the
>>> sandbox.
>>> Thank you.
>>>
>>>
>>>
>>> Alessandro  Vernet wrote:
>>>>
>>>> Julien,
>>>>
>>>> Would you have a simple reproducible example that we can run in the
>>>> XForms sandbox and use to reproduce this?
>>>>
>>>> Alex
>>>>
>>>> On Wed, Mar 10, 2010 at 1:09 AM, Bittard, Julien
>>>> <[hidden email]> wrote:
>>>>>
>>>>> Thank you, it works fine.
>>>>>
>>>>>
>>>>>
>>>>> I try to display global errors with error summary component. But,
>>>>> although the nodeset is empty, an empty line is displayed.
>>>>>
>>>>>
>>>>>
>>>>> My error summary :
>>>>>
>>>>>             <fr:error-summary observer="main-group" id="error-summary">
>>>>>
>>>>>                         <fr:label>Liste des erreurs sur la
>>>>> page</fr:label>
>>>>>
>>>>>                         <fr:errors nodeset="instance('main')/erreur">
>>>>>
>>>>>                                 <fr:alert ref="."/>
>>>>>
>>>>>                         </fr:errors>
>>>>>
>>>>>             </fr:error-summary>
>>>>>
>>>>>
>>>>>
>>>>> The node "erreur" is empty, but I have this result :
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thank You.
>>>>>
>>>>>
>>>>>
>>>>> Julien Bittard
>>>>>
>>>>>
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Erik Bruchez [mailto:[hidden email]]
>>>>> Envoyé : mardi 9 mars 2010 23:28
>>>>>
>>>>> À : [hidden email]
>>>>> Objet : [ops-users] Re: RE: Re: Problem with error summary component
>>>>>
>>>>>
>>>>>
>>>>> Do this on xforms-ready instead.
>>>>>
>>>>>
>>>>>
>>>>> -Erik
>>>>>
>>>>>
>>>>>
>>>>> On Tue, Mar 9, 2010 at 12:33 AM, ricetrac <[hidden email]>
>>>>> wrote:
>>>>>
>>>>> >
>>>>>
>>>>> > I try with an xforms-model-construct-done event in my model, but it
>>>>>
>>>>> > doesn't work :
>>>>>
>>>>> >
>>>>>
>>>>> > <xforms:action ev:event="xforms-model-construct-done">
>>>>>
>>>>> >       <xforms:dispatch name="fr-visit-all" targetid="error-summary"/>
>>>>>
>>>>> > </xforms:action>
>>>>>
>>>>> >
>>>>>
>>>>> > thank you.
>>>>>
>>>>> >
>>>>>
>>>>> > Julien
>>>>>
>>>>> > --
>>>>>
>>>>> > View this message in context:
>>>>>
>>>>> >
>>>>> http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p15
>>>>>
>>>>> > 85663.html Sent from the Orbeon Forms (ops-users) mailing list
>>>>> archive
>>>>>
>>>>> > at Nabble.com.
>>>>>
>>>>> >
>>>>>
>>>>> >
>>>>>
>>>>> > --
>>>>>
>>>>> > 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
>>>>>
>>>>> >
>>>>>
>>>>> >
>>>>>
>>>>> 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.
>>>>
>>>>
>>>> --
>>>> 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
>>>>
>>>>
>>> http://n4.nabble.com/file/n1590806/error_summary.xhtml
>>> error_summary.xhtml
>>> --
>>> View this message in context:
>>> http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p1590806.html
>>> Sent from the Orbeon Forms (ops-users) mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> 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
>>
>>
>
> --
> View this message in context: http://n4.nabble.com/Problem-with-error-summary-component-tp1579867p1594579.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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