You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Greg <gr...@gmail.com> on 2005/03/07 16:34:02 UTC
Validation fail error message
Hello all,
I have an ongoing struggle with validation of cocoon (v2.1) forms. I
can now validate (most of) my widgets, however, when validation fails
the form is re-displayed with little exclaimation marks beside the
offending fields! This, however, is insufficient. Is there a way to
provide a pop-up message informing the user that the submit failed or
better still, display a label on the form asking the user to mend the
errors highlighted by exclaimation marks?
Appreciate any pointers,
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Validation fail error message
Posted by Scott Yeadon <sc...@anu.edu.au>.
You can use a combination of fd:hint (see
http://cocoon.apache.org/2.1/userdocs/forms/widget_field.html) and
fd:failmessage (see
http://cocoon.apache.org/2.1/userdocs/forms/validation.html for
example). If you want to have a messages area on your form you can use
an fd:messages or fd:output widget.
Scott.
Greg wrote:
>Hello all,
>
>I have an ongoing struggle with validation of cocoon (v2.1) forms. I
>can now validate (most of) my widgets, however, when validation fails
>the form is re-displayed with little exclaimation marks beside the
>offending fields! This, however, is insufficient. Is there a way to
>provide a pop-up message informing the user that the submit failed or
>better still, display a label on the form asking the user to mend the
>errors highlighted by exclaimation marks?
>
>Appreciate any pointers,
>
>Greg
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Validation fail error message
Posted by Ben Pope <be...@REMOVE_MEhotmail.com>.
Greg Wrote:
> Hello all,
>
> I have an ongoing struggle with validation of cocoon (v2.1)
> forms. I can now validate (most of) my widgets, however, when
> validation fails the form is re-displayed with little
> exclaimation marks beside the offending fields! This,
> however, is insufficient. Is there a way to provide a pop-up
> message informing the user that the submit failed or better
> still, display a label on the form asking the user to mend
> the errors highlighted by exclaimation marks?
>
> Appreciate any pointers,
Have you looked at:
/samples/blocks/forms/form1
?
It has little boxes that pop up in css, that allow descriptions, not just on
validation, but all the time.
Ben Pope.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org