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/JSR303/Advanced" by GerhardPetracek
Date Sun, 14 Mar 2010 13:21:28 GMT
Dear Wiki user,

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

The "Extensions/Validator/JSR303/Advanced" page has been changed by GerhardPetracek.
http://wiki.apache.org/myfaces/Extensions/Validator/JSR303/Advanced?action=diff&rev1=5&rev2=6

--------------------------------------------------

  ==== Custom Severity Payload Implementations ====
  
  {{{
+ StaticInMemoryConfiguration config = new StaticInMemoryConfiguration();
- ExtValContext extValContext = ExtValContext.getContext();
- 
- extValContext.addGlobalProperty(ViolationSeverity.Info.class.getName(),
+ config.addMapping(ViolationSeverity.Info.class.getName(),
-   org.mypackage.CustomViolationSeverity.Info.class);
+   org.mypackage.CustomViolationSeverity.Info.class.getName());
- extValContext.addGlobalProperty(ViolationSeverity.Warn.class.getName(),
+ config.addMapping(ViolationSeverity.Warn.class.getName(),
-   org.mypackage.CustomViolationSeverity.Warn.class);
+   org.mypackage.CustomViolationSeverity.Warn.class.getName());
- extValContext.addGlobalProperty(ViolationSeverity.Fatal.class.getName(),
+ config.addMapping(ViolationSeverity.Fatal.class.getName(),
-   org.mypackage.CustomViolationSeverity.Fatal.class);
+   org.mypackage.CustomViolationSeverity.Fatal.class.getName());
+ ExtValContext.getContext().addStaticConfiguration(VALIDATION_PARAMETER_CONFIG, config);
  }}}
  
  ==== Custom DisableClientSideValidation Payload Implementation ====

Mime
View raw message