Re: Showing image beside fields with errors

2001-10-25 Thread John Yu
tandard html:errors tag does) and within the body of the form include just a single image before each field in error, simply to use as an indicator. Thanks, Michelle From: John Yu [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Showing image beside fields with errors

Showing image beside fields with errors

2001-10-24 Thread Michelle Popovits
Hi, A couple things that I would like to do with the Struts 1.0 release relating to errors that I can't see doing without writing a bunch of extra code. 1) When I have validation errors (ActionErrors) I would like to show an image (red arrow gif) next to the fields that are in error. 2) I

RE: Showing image beside fields with errors

2001-10-24 Thread Alexander Jesse
3:57 AM To: [EMAIL PROTECTED] Subject: Showing image beside fields with errors Hi, A couple things that I would like to do with the Struts 1.0 release relating to errors that I can't see doing without writing a bunch of extra code. 1) When I have validation errors (ActionErrors) I would like

Re: Showing image beside fields with errors

2001-10-24 Thread John Yu
Michelle, Regarding #1, you use the 'property' attribute of the ActionError to associate the error with the problematic field. In your validation code: if((form.getName() == null) || form.getName().equals()) { // Name can't be empty. Report the problem. ActionErrors errors = new

Re: Showing image beside fields with errors

2001-10-24 Thread Jonathan M Crater
the only way to do this with the 1.0 release is to embed your image and anchor tags in your application resources file. you could also consider placing the error message directly beside or on top of the fields which generated the errors by using html:errors property=.../. if you're willing to

Re: Showing image beside fields with errors

2001-10-24 Thread Michelle Popovits
] From: Jonathan M Crater [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Showing image beside fields with errors Date: Wed, 24 Oct 2001 06:56:11 -0400 the only way to do this with the 1.0 release is to embed your image and anchor tags in your application resources file

Re: Showing image beside fields with errors

2001-10-24 Thread Michelle Popovits
a single image before each field in error, simply to use as an indicator. Thanks, Michelle From: John Yu [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Showing image beside fields with errors Date: Wed, 24 Oct 2001 16:30:17 +0800 Michelle, Regarding #1, you use