• Post Reply Bookmark Topic Watch Topic
  • New Topic

Email address validation in Stripes?

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on Stripes and Its looking great to me, i just want to know is there inbuilt email address validation in Stripes? Like we have required and all using annotations?


Regards,
Pawan Chopra.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what EmailTypeConverter is for. The field holding the email address should be annotated something like this:
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that this type converter requires that you have mail.jar and standard.jar in your application's classpath to work. The validator resuses some code from the javamail API.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!