On Jan 31, 2012, at 2:41 PM, Christophe Laprun wrote:
On Jan 31, 2012, at 2:36 PM, Julien Viet wrote:
> I would like to avoid the creation of a service only for this purpose / scope.
>
> can you avoid this part and make it more straightforward ?
I guess UserConfigurableUsernameValidator could parse the configuration file directly,
assuming it's possible to retrieve the gatein.conf.dir value from that part of the
code.
Simple implementation is done:
https://source.jboss.org/changelog/GateIn?cs=8330
Now, we would just need to use it where needed. I tested that it works, the only problem,
which also occurs for ExpressionValidator, is that if the value doesn't match the
pattern, then the error message needs to output a format. The default is using the pattern
String but that doesn't work very well with HTML output…
Cordialement / Best,
Chris
==
Principal Software Engineer / JBoss Enterprise Middleware Red Hat, Inc.
Follow GateIn:
http://blog.gatein.org /
http://twitter.com/gatein
Follow me:
http://metacosm.info/metacosm /
http://twitter.com/metacosm