commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: [Validator] Need to validate one field at a time
Date Thu, 05 Feb 2004 21:08:03 GMT
The code in the ticket

http://issues.apache.org/bugzilla/show_bug.cgi?id=25991

looks like it's on the right track.  If it's turned into a cvs diff -u
formatted patch against the nightly build and unit tests are supplied I
will volunteer to commit it.

David

--- Mike Sauer <msauer@convergys.com> wrote:
> I did not notice that my colleague entered a ticket for this.  Sorry 
> about that.
> I think the changes needed depend on the release.
> For the 1.0.2 thru 1.1.1 releases, simply making the Validator 
> validateField method public would enable one to extend the Valdidator 
> class to add a validateField method that takes a String argument 
> identifiying the fieldName.  Ideally, the Validator class would be 
> changed to include this method similar to the code in the ticket.
> For the post 1.1.1 release it appears that the code is being 
> restructured.  Again, ideally a validateField(String fieldName) method 
> would be added to the Validate class.  Extending the current Valdidator 
> class would still not be an option unless the Field validate method is 
> made public.  It is currently package protected.
> 
> 
> David Graham wrote:
> 
> >Validator was initially designed to validate all fields on a form not
> >individual fields.  Validating a single field would be useful and I
> have
> >looked at the bugzilla ticket for this issue.  What do you think needs
> to
> >change to allow single field validation?
> >
> >David
> >
> >--- Mike Sauer <msauer@convergys.com> wrote:
> >  
> >
> >>I would like to be able to validate just a single field.  I am making 
> >>use of the validator framework via struts and I am now considering
> using
> >>
> >>it to perform validation in a Swing application.  For a Swing app I 
> >>would like to validate each field as it loses focus.  In the 1.0.2 
> >>version of the validation framework the validateField method is 
> >>private.  In later versions I have noticed that this behavior is being
> 
> >>moved to the Field class but the methods appear to be package 
> >>protected.  Basically I would like to know if I am trying to do 
> >>something that the framework was never meant to and never will be able
> 
> >>to support.  Thanks.
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >>
> >>    
> >>
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Finance: Get your refund fast by filing online.
> >http://taxes.yahoo.com/filing.html
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message