Question on Validation

2004-02-19 Thread Patrick Cheng
Hi all,
 I am trying to validate a collection of objects, like:
field property=meansAddress
indexedListProperty=value.notifications
   depends=mask,required
var
var-namemask/var-name
var-value^[0-9]*$/var-value
/var
arg0 key=Appointment.notificationInformation.label/
/field  

My question is.. I have 5 sets of 'meansAddress', but the error message
is NOT able to tell which one has error. As long as one or more have
errors, the SAME message will be shown.. Can anyone confirm, that's all
I can do? I can't get down to which one in the collection cuzes the
problem. Right?

Cheers,
Patrick.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Question on Validation

2002-02-28 Thread Saeid Zoonematkermani

Hello,

I am using struts 1.0.2 and have been looking at ways to do more than the 
default validation provides. I have downloaded and tested Struts 
Validator package but it does not seem to provide what we are looking for.

Here is the problem... After the user submits the form and it fails 
validation, we would like to some how distinguish the input field in 
question by either changing the background color of the cell, the font 
color, putting an asterisk in front of it, or some thing of that flavor.

I can't find in the docs or the archives any mention of this way of 
handling validation. So is this possible in struts 1.0.2? Did I miss some 
thing in the Struts Validator package? Is there another package that 
might provide it?

Any help, advice, and/or exmples would be greatly appreciated. Thanks,

- Saeid



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Question on Validation

2002-02-28 Thread David Winterfeldt

This isn't an issue with validating.  This is
formatting your view based on the ActionErrors object
generated by validation.

Struts nightly builds has logic:messagesPresent and
logic:messagesNotPresent jsp tags to control
formating.

The Struts Validator before the 1/14/2002 build posted
on 
http://home.earthlink.net/~dwinterfeldt have a
validator:messagesExist jsp tag.  Below are a couple
of examples.  The 'validator:messagesExist
property=lastName' will evaluate the its body if
there is an error for the lastName property.

Messages Exist Tag
A simple logic tag that checks for an object in the
request attribute under the default or specified
message key. If there is an object, then the body of
the tag is evaluated. 
validator:messagesExist 
   ul 
   validator:messages id=message 
  libean:write name=message//li 
   /validator:messages 
   /ulhr 
/validator:messagesExist 

validator:messagesExist property=lastName 
   ul 
   validator:messages id=message
property=lastName 
  libean:write name=message//li 
   /validator:messages 
   /ulhr 
/validator:messagesExist 


David

--- Saeid Zoonematkermani
[EMAIL PROTECTED] wrote:
 Hello,
 
 I am using struts 1.0.2 and have been looking at
 ways to do more than the 
 default validation provides. I have downloaded and
 tested Struts 
 Validator package but it does not seem to provide
 what we are looking for.
 
 Here is the problem... After the user submits the
 form and it fails 
 validation, we would like to some how distinguish
 the input field in 
 question by either changing the background color of
 the cell, the font 
 color, putting an asterisk in front of it, or some
 thing of that flavor.
 
 I can't find in the docs or the archives any mention
 of this way of 
 handling validation. So is this possible in struts
 1.0.2? Did I miss some 
 thing in the Struts Validator package? Is there
 another package that 
 might provide it?
 
 Any help, advice, and/or exmples would be greatly
 appreciated. Thanks,
 
 - Saeid
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]