producing individual error messages

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

producing individual error messages

c.harder
Hi,
I have a little xforms-model with binds for validation.
So whats the best way for producing my own error messages in view?
Do I have to use more bindings (little example please) in combination with a message element?
Whats the smartest way?

Thanks
Clemens



--
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: producing individual error messages

Alessandro  Vernet
Administrator
Hi Clemens,

Right now the error messages you specify in the <xforms:alert> are not
displayed when that control is invalid. For PresentationServer 3.0, we
will provide a standard way to display those errors, and you can have
a look at the bug entry below to track this issue.

http://forge.objectweb.org/tracker/index.php?func=detail&aid=304325&group_id=168&atid=350207

The problem with the <xforms:alert>, is that the XForms specification
does not specify how they are to displayed or how the way they are
displayed can be customized (summary section at the top, message close
to the XForms control, etc). So another way to deal with this, which
will be more portable across XForms implementations, is to add node in
the instance, add a "relevant" on that node that returns true is the
node you want to validate is invalid, in the view have a <xforms:group
ref="that node"> around your error message.

Alex

On 11/28/05, [hidden email] <[hidden email]> wrote:

> Hi,
> I have a little xforms-model with binds for validation.
> So whats the best way for producing my own error messages in view?
> Do I have to use more bindings (little example please) in combination with a message element?
> Whats the smartest way?
>
> Thanks
> Clemens
>
>
>
>
> --
> 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
>
>
>

--
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