Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 64057 invoked from network); 21 Sep 2004 14:03:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Sep 2004 14:03:37 -0000 Received: (qmail 75238 invoked by uid 500); 21 Sep 2004 14:02:26 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 75042 invoked by uid 500); 21 Sep 2004 14:02:22 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 74994 invoked by uid 99); 21 Sep 2004 14:02:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [209.124.92.194] (HELO london.adjkhost.com) (209.124.92.194) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 21 Sep 2004 07:02:20 -0700 Received: from [81.193.180.239] (helo=ricardo) by london.adjkhost.com with smtp (Exim 4.42) id 1C9lDj-0005Q3-NZ for commons-user@jakarta.apache.org; Tue, 21 Sep 2004 16:02:16 +0200 From: "Ricardo Trindade" To: "Jakarta Commons Users List" Subject: RE: [Validator] trouble using validator standalone Date: Tue, 21 Sep 2004 15:01:39 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <20040921130958.5394.qmail@web50408.mail.yahoo.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - london.adjkhost.com X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - emation.pt X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ok, I've solved it using : http://jroller.com/page/JonathanLehr/20040808#beanutls_1_7_0_released periods in property names are frequent, since I'm using validator to validade property files. thanks Ricardo -----Mensagem original----- De: David Graham [mailto:grahamdavid1980@yahoo.com] Enviada: terca-feira, 21 de Setembro de 2004 14:10 Para: Jakarta Commons Users List Assunto: RE: [Validator] trouble using validator standalone By "key" I think you mean property name. I don't know of any way to avoid the nested evaluation caused by a "." character. Why do you want a period in a property name? David --- Ricardo Trindade wrote: > Hi, > > I'm now using validator successfully. > > However, one question remains. I'm using it to validate properties > inside > Property objects. It works fine, provided that the key doesn't contain > the > "." character. If it does, validator tries to validate a "composite" > property. Is there any way to overcome this ? > > thanks > Ricardo > > -----Mensagem original----- > De: Ricardo Trindade [mailto:ricardo.trindade@emation.pt] > Enviada: segunda-feira, 20 de Setembro de 2004 21:59 > Para: Jakarta Commons Users List > Assunto: RE: [Validator] trouble using validator standalone > > > Ok, I think I'll be able to use it now. > > Removing the wrapping appears to make sense...It makes reusing > validators > harder than it should be... > > thanks > Ricardo > > -----Mensagem original----- > De: David Graham [mailto:grahamdavid1980@yahoo.com] > Enviada: segunda-feira, 20 de Setembro de 2004 20:38 > Para: Jakarta Commons Users List > Assunto: Re: [Validator] trouble using validator standalone > > > Validator comes with 2 primary features: A pluggable validation > framework > and basic validation methods that you can choose to use in the > framework. > GenericValidator is the second feature. > > Currently, you need to wrap the provided validation methods with a > method > that is invoked by the framework. Struts' FieldChecks class wraps > GenericValidator methods for its usage and the example standalone > validator class also wraps some methods. You need to do something > similar > if you're using validator without Struts. > > The wrapping requirement is a leftover from the old design and there has > been talk of removing that step altogether by making versions of > GenericValidator methods that are directly callable from the framework. > > David > > --- Ricardo Trindade wrote: > > > Hi, > > > > I' having troubles using commons-validator (latest release, also > tried > > today's snapshot) without struts. > > > > Specifically I tried the code in CVS that can be reached through the > > FAQ > > item : > > http://wiki.apache.org/jakarta-commons/ValidatorStandalone > > > > I couldn't understand why this examples uses Validators from the test > > package, instead of using, for example, GenericValidator. I tried to > > change > > the example to use GenericValidator, but validating my bean always > > fails. > > > > My XML (header removed): > > > > > > > > > classname="org.apache.commons.validator.GenericValidator" > method="isInt" > > methodParams="java.lang.String" msg="errors.int"/> > > > > > >
> > > > > >
> >
> > > > > > thanks > > Ricardo Trindade > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > > > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org