You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Travis Reeder <tr...@ecommstats.com> on 2004/03/04 00:17:42 UTC
Form error messages
Is it possible to put error messages beside the input? I can get the
validation working with client side and server side shows up with a red
text box, but what about a message beside the red textbox? for example:
<td>label</td>
<td><input></td>
<td>ERROR MESSAGE</td>
Travis
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Form error messages
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
To get the error message:
<td>
<span jwcid="@Delegator" delegate="ognl:delegate.componentTracking.errorRenderer"/>
</td>
That should work ... the IValidationDelegate will provide the component tracking for the current
component; the errorRenderer is an object that will render an error message specific to the field.
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components
http://howardlewisship.com
> -----Original Message-----
> From: Travis Reeder [mailto:travis.reeder@ecommstats.com]
> Sent: Wednesday, March 03, 2004 6:18 PM
> To: Tapestry users
> Subject: Form error messages
>
>
> Is it possible to put error messages beside the input? I can get the
> validation working with client side and server side shows up
> with a red
> text box, but what about a message beside the red textbox?
> for example:
>
> <td>label</td>
> <td><input></td>
> <td>ERROR MESSAGE</td>
>
> Travis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org