webtier@glassfish.java.net

Validating against repeated words using JSF

From: <webtier_at_javadesktop.org>
Date: Sat, 15 May 2010 02:36:39 PDT

My requirement is to accept user input consists of series of words but not repeated words, which means no two same words next to each other.

It may not be a difficult task to detect repeated words using regular expression like the following: \b (w+) \1 \b

Can I achieve my goal using f:validateRegex JSF tag?
[Message sent by forum member 'sariga']

http://forums.java.net/jive/thread.jspa?messageID=469930