Perfect. Thanks, Erik!
-BR
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik Bruchez
Sent: Tuesday, November 30, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [orbeon-user] constraints, alerts
Brian,
(Pasted from an earlier reply on the same subject:)
I recommend you look at the BizDoc example, which does exactly this. We
add to the XForms instance a /form/show-errors element, which we set to
true in the Page Flow if errors are found when trying to save. Then, in
the view, we set the attribute like this:
<xforms:group ref="/form"
xxforms:show-errors="{/form/show-errors = 'true'}">
-Erik
Brian Rosenthal wrote:
> Some useful field validations are demonstrated in the orbeon.war Text
> Controls example. The Text Area for example, must have a value of "at
> least 10 characters."
>
>
>
> In my application, I'd like the user to enter anything he/she likes, as
> long as a value is supplied. If I add the constraint "string-length(.)
> > 0" then my rule will be enforced as expected.
>
>
>
> I run into a problem when initially presenting the user with a blank
> form. An error message (i.e., the alert) is displayed, indicating the
> user has done something wrong. This is not the case, as they haven't
> had a chance to provide any data.
>
>
>
> What approach do you recommend, so that I can show the alert only when
> the user has committed an error?
>
>
>
> (Again, just now beginning to get my arms around this stuff)
>
>
>
> Thanks!
>
> -BR
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user