You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Gregory F. March" <ma...@gfm.net> on 2003/06/13 14:44:24 UTC
html:error dynamic usage
Boy, I'm just full of questions this morning! Musta been something in
my oatmeal. :-)
I would like to have a page that changes the color of the text
associated with input fields when the data is entered incorrectly.
For example, in the case of a "Username: _____" textfield input, if
the user leaves the textfield blank, I would like to display
"Username:" in red.
Can I use the html:error facility or is there another component of
struts that I should be looking at?
Thanks,
/greg
--
Gregory F. March -=- http://www.gfm.net:81/~march -=- AIM:GfmNet
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: html:error dynamic usage
Posted by Sandeep Takhar <sa...@yahoo.com>.
Someone just asked that...
I think there is a custom tag..LabelTag?
sandeep
--- "Gregory F. March" <ma...@gfm.net> wrote:
>
> Boy, I'm just full of questions this morning! Musta
> been something in
> my oatmeal. :-)
>
> I would like to have a page that changes the color
> of the text
> associated with input fields when the data is
> entered incorrectly.
> For example, in the case of a "Username: _____"
> textfield input, if
> the user leaves the textfield blank, I would like to
> display
> "Username:" in red.
>
> Can I use the html:error facility or is there
> another component of
> struts that I should be looking at?
>
> Thanks,
>
> /greg
>
> --
> Gregory F. March -=-
> http://www.gfm.net:81/~march -=- AIM:GfmNet
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: html:error dynamic usage
Posted by Mike Jasnowski <mj...@bea.com>.
There is no Struts facility that does what you describe. This topic has come
up fairly recently on this list, and I believe one or two patches have been
submitted that address this issue. If you look through bugzilla you should
be able to find them. Basically they entail a tailored version of the
<html:text> tag for example, that detects if the field in error exists in
the errors collection.
HTH,
Mike Jasnowski
-----Original Message-----
From: Gregory F. March [mailto:march@gfm.net]
Sent: Friday, June 13, 2003 8:44 AM
To: Struts Users Mailing List
Subject: html:error dynamic usage
Boy, I'm just full of questions this morning! Musta been something in
my oatmeal. :-)
I would like to have a page that changes the color of the text
associated with input fields when the data is entered incorrectly.
For example, in the case of a "Username: _____" textfield input, if
the user leaves the textfield blank, I would like to display
"Username:" in red.
Can I use the html:error facility or is there another component of
struts that I should be looking at?
Thanks,
/greg
--
Gregory F. March -=- http://www.gfm.net:81/~march -=- AIM:GfmNet
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org