Re: Showing image beside fields with errors

2001-10-25 Thread John Yu
the page (like standard 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

Re: Showing image beside fields with errors

2001-10-24 Thread Michelle Popovits
ude 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 >Date: Wed, 24 Oct 2001 16:30:17 +08

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

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 . if you're willing to upgrade to a more recent ver

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 Alexander Jesse
Hi, your points are also in our styleguide... 1) here's what I did: (using struts 1.0.0 and the validator-package dated: 2001-07-02) --- page-declarations: <%@ taglib uri="/WEB-INF/struts-validator.tld" prefix="validator" %> --- somewhere within the form: --- 2) is