Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 85303 invoked from network); 17 Nov 2009 18:12:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 18:12:33 -0000 Received: (qmail 56597 invoked by uid 500); 17 Nov 2009 18:12:31 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 56500 invoked by uid 500); 17 Nov 2009 18:12:31 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 56490 invoked by uid 99); 17 Nov 2009 18:12:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 18:12:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jankeesvanandel@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 18:12:22 +0000 Received: by bwz3 with SMTP id 3so289785bwz.36 for ; Tue, 17 Nov 2009 10:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=/cKA+3DAnBhyhGlnPgsYnbLxvge7cu7gUZNUTFZgUhY=; b=eFqJgTsqPH6IY7SkzegPMMXZ5VfySubxsLYEutg7fVYRetxsDCfR4U3f/H3nK0ZmEp fCamaaE8kMZKL5vFqHRQJ0kM3LYX0a+AuivaJhYo9of7Ig4GO8MfakrcHK+NWFPgnnSR LFm5AMq4vGrKdT7McMilSNW3x4SuFdjR9G8C4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=K2lIY3XoIvP1eI04J+Z7a1ocq+u7MsbTGXTHg/yeQsZt4R4DCI+v8EmO+dEamAj2IZ Ar159cXat5iXQDWNCrQL6EWhcyM+novURxT/BOf6REOBZCd/J6Oej0sszt8JwlzkZgmq 2HxbJmE2Dg0EAh4FCsoawhcGf0pzWx/e2nBI8= MIME-Version: 1.0 Received: by 10.102.14.4 with SMTP id 4mr4575250mun.2.1258481521437; Tue, 17 Nov 2009 10:12:01 -0800 (PST) In-Reply-To: <86473bc40911170456o10b2b904md60be90e066550c3@mail.gmail.com> References: <26340146.post@talk.nabble.com> <26340389.post@talk.nabble.com> <26340778.post@talk.nabble.com> <86473bc40911170456o10b2b904md60be90e066550c3@mail.gmail.com> Date: Tue, 17 Nov 2009 19:12:00 +0100 Message-ID: <237ac0b0911171012l2492e983tf4c2fe4bfbf537a3@mail.gmail.com> Subject: Re: A telephone tag? From: Jan-Kees van Andel To: MyFaces Discussion , bart@kummelweb.nl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org You can try the PrimeFaces component. It's really nice: http://97.107.138.40:8080/prime-showcase/ui/inputMask.jsf Regards, Jan-Kees 2009/11/17 Bart Kummel : > I think the easiest way to get your phone number validation is to use a > regular expression validator, such as > . > You can use google search to find a good regular expression to validate > phone numbers. I found this one > for example. > > Best regards, > Bart Kummel > > On Fri, Nov 13, 2009 at 19:05, laredotornado wro= te: > >> >> I appreciate the fact that you are responding but you realize the second >> link >> is basically an empty page and neither contains examples. >> >> I think what you are trying to say is that there are no such tags as the >> ones I'm searching for and I'll have to write them myself. =A0- Dave >> >> >> >> Anton Gavazuk wrote: >> > >> > http://wiki.apache.org/myfaces/Extensions/Validator/ >> > http://myfaces.apache.org/commons12/myfaces-validators12/index.html >> > >> > 2009/11/13 laredotornado >> > >> >> >> >> Could you provide some examples? =A0I'm looking to create and validat= e >> some >> >> common fields, such as phone number, email address, US state (possibl= y >> >> from >> >> a select menu of all states) and country. =A0It seems that those type= s of >> >> things would have been tackled before and I would not need to re-inve= nt >> >> the >> >> wheel. >> >> >> >> Thanks, - Dave >> >> >> >> >> >> >> >> Anton Gavazuk wrote: >> >> > >> >> > Myfaces Common RegExp validator will validate everything what you w= ant >> >> or >> >> > you can even write your own. >> >> > >> >> > 2009/11/13 laredotornado >> >> > >> >> >> >> >> >> Hi, >> >> >> >> >> >> I'm using MyFaces 1.1.9. =A0Is there a pre-built tag somewhere tha= t can >> >> >> validate a US telephone number field of the form "XXX-XXX-XXXX" wh= ere >> >> "X" >> >> >> is >> >> >> a number? =A0This seems like something that would have been done m= any >> >> times >> >> >> before. >> >> >> >> >> >> Thanks, - Dave >> >> >> -- >> >> >> View this message in context: >> >> >> http://old.nabble.com/A-telephone-tag--tp26340146p26340146.html >> >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> http://old.nabble.com/A-telephone-tag--tp26340146p26340389.html >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/A-telephone-tag--tp26340146p26340778.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >