How about a client side solution? http://digitalbush.com/projects/masked-input-plugin/
On Fri, Nov 13, 2009 at 6:16 PM, Anton Gavazuk <[email protected]>wrote: > Dave, > > you can create your own tags - although its not easy task, > what I'm trying to say - you can validate entered values by your custom > validator/already existed validators > > example of custom validator > > http://www.google.ch/url?sa=t&source=web&ct=res&cd=3&ved=0CBIQFjAC&url=http%3A%2F%2Fwww.ibm.com%2Fdeveloperworks%2Flibrary%2Fj-jsf3%2F&ei=MqL9St3lPI_9_AaQ4pyeCw&usg=AFQjCNH5n_jGbSVdI3LhXqy6BQpCvUXzRg&sig2=RfmB_K2aqcKN0Y-ERKQJKw > > Unfortunately I dont have an example of Myfaces Commons validator. > > > 2009/11/13 laredotornado <[email protected]> > > > > > 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. - Dave > > > > > > > > Anton Gavazuk wrote: > > > > > > http://wiki.apache.org/myfaces/Extensions/Validator/ > > > http://myfaces.apache.org/commons12/myfaces-validators12/index.html > > > > > > 2009/11/13 laredotornado <[email protected]> > > > > > >> > > >> Could you provide some examples? I'm looking to create and validate > > some > > >> common fields, such as phone number, email address, US state (possibly > > >> from > > >> a select menu of all states) and country. It seems that those types > of > > >> things would have been tackled before and I would not need to > re-invent > > >> the > > >> wheel. > > >> > > >> Thanks, - Dave > > >> > > >> > > >> > > >> Anton Gavazuk wrote: > > >> > > > >> > Myfaces Common RegExp validator will validate everything what you > want > > >> or > > >> > you can even write your own. > > >> > > > >> > 2009/11/13 laredotornado <[email protected]> > > >> > > > >> >> > > >> >> Hi, > > >> >> > > >> >> I'm using MyFaces 1.1.9. Is there a pre-built tag somewhere that > can > > >> >> validate a US telephone number field of the form "XXX-XXX-XXXX" > where > > >> "X" > > >> >> is > > >> >> a number? This seems like something that would have been done many > > >> 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. > > > > >

