Validation alerts on xforms:input fields

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

Validation alerts on xforms:input fields

NickWK
In my XForm I have bound my model to an external schema definition and instance
document.

I then display certain fields for the user to edit. If valdiation of the field
fails against the underlying schema is it possible to display the actual
validation error message rather than just some text that I have written in the
alert on the field itself?

<xforms:input ref="urn:MsgId" model="5">
        <xforms:label class="group-header-label">Msg Id</xforms:label>
        <xforms:alert>The Message Id is too long</xforms:alert>
        <xforms:hint>This is a message id field</xforms:hint>
</xforms:input>


--
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: Validation alerts on xforms:input fields

Erik Bruchez-3
By "validation error message" do you mean the message returned by the
schema validator?

This is not possible at the moment.

-Erik

On Wed, Nov 18, 2009 at 3:38 AM,  <[hidden email]> wrote:

> In my XForm I have bound my model to an external schema definition and instance
> document.
>
> I then display certain fields for the user to edit. If valdiation of the field
> fails against the underlying schema is it possible to display the actual
> validation error message rather than just some text that I have written in the
> alert on the field itself?
>
> <xforms:input ref="urn:MsgId" model="5">
>        <xforms:label class="group-header-label">Msg Id</xforms:label>
>        <xforms:alert>The Message Id is too long</xforms:alert>
>        <xforms:hint>This is a message id field</xforms:hint>
> </xforms:input>
>
>
> --
> 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