myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Extensions/Validator/DevDoc" by GerhardPetracek
Date Sun, 08 Mar 2009 00:58:19 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by GerhardPetracek:
http://wiki.apache.org/myfaces/Extensions/Validator/DevDoc

------------------------------------------------------------------------------
  
  it's a pluggable mechanism to get PropertyDetails, ... of the bound property and other el
topics used by extval.
  
+ setting a custom el-helper via a startup-listener (a short example)
+ 
+ {{{
+ public class ELHelperStartupListener extends AbstractStartupListener
+ {
+     protected void init()
+     {
+         ExtValContext.getContext().getFactoryFinder().getFactory(FactoryNames.EL_HELPER_FACTORY,
AbstractELHelperFactory.class).setCustomELHelperFactory(new AbstractELHelperFactory() {
+             protected ELHelper createELHelper()
+             {
+                 return new DefaultELHelper() {
+                     @Override
+                     //override methods of the default impl.
+                 };
+             }
+         });
+     }
+ }
+ }}}
  ----
  
  == JSR 303 integration ==

Mime
View raw message