You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2009/03/08 01:58:19 UTC

[Myfaces Wiki] Update of "Extensions/Validator/DevDoc" by GerhardPetracek

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 ==