Custom display of errors

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

Custom display of errors

Alessandro  Vernet
Administrator
We have created a new example titled "Registration Form" that shows
how to take control of how errors are displayed and handled, all this
with standard XForms. See the attached screenshot and example
description below.

Errors in XForms can be styled with CSS, but not all cases can be
handled just with CSS. For instance, CSS can't be used to control
where error messages are displayed (next to the control, at the top of
the page in a summary of all the errors), or to start displaying
errors for a control only after the user started typing in that
control.

This example shows how you can implement custom error handling in
XForms by adding annotations to the instance, using model item
properties, and using <xforms:group> and <xforms:output> in the HTML
to display errors in the HTML.

Alex
--
Blog (XML, Web apps, Open Source): 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Custom display of errors

Alexander Žaťko
Alex,

Where is that screenshot?

On Dec 16, 2005, at 7:33 AM, Alessandro Vernet wrote:

> We have created a new example titled "Registration Form" that shows
> how to take control of how errors are displayed and handled, all this
> with standard XForms. See the attached screenshot and example
> description below.
>
> Errors in XForms can be styled with CSS, but not all cases can be
> handled just with CSS. For instance, CSS can't be used to control
> where error messages are displayed (next to the control, at the top of
> the page in a summary of all the errors), or to start displaying
> errors for a control only after the user started typing in that
> control.
>
> This example shows how you can implement custom error handling in
> XForms by adding annotations to the instance, using model item
> properties, and using <xforms:group> and <xforms:output> in the HTML
> to display errors in the HTML.
>
> Alex
> --
> Blog (XML, Web apps, Open Source): 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



--
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: Custom display of errors

Erik Bruchez
Administrator
It looks like Alex forgot the screenshot before leaving for his
vacation. I attach my own screenshot :-)

-Erik

Alexander Zatko wrote:

> Alex,
>
> Where is that screenshot?
>
> On Dec 16, 2005, at 7:33 AM, Alessandro Vernet wrote:
>
>> We have created a new example titled "Registration Form" that shows
>> how to take control of how errors are displayed and handled, all this
>> with standard XForms. See the attached screenshot and example
>> description below.
>>
>> Errors in XForms can be styled with CSS, but not all cases can be
>> handled just with CSS. For instance, CSS can't be used to control
>> where error messages are displayed (next to the control, at the top of
>> the page in a summary of all the errors), or to start displaying
>> errors for a control only after the user started typing in that
>> control.
>>
>> This example shows how you can implement custom error handling in
>> XForms by adding annotations to the instance, using model item
>> properties, and using <xforms:group> and <xforms:output> in the HTML
>> to display errors in the HTML.
>>
>> Alex
>> --
>> Blog (XML, Web apps, Open Source): 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

registration.png (9K) Download Attachment