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/12/13 13:04:15 UTC

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

Dear Wiki user,

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

The "Extensions/Validator/DevDoc/Drafts" page has been changed by GerhardPetracek.
http://wiki.apache.org/myfaces/Extensions/Validator/DevDoc/Drafts?action=diff&rev1=11&rev2=12

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

  = Concepts for new features =
+ 
+ == 4th release ==
+ 
+ === new annotations ===
+ 
+  * @EmptyIf (see EXTVAL-75)
+  * @Range
+  * @Expression
+ 
+ ==== Details about @Expression ====
+ 
+ in addition to @SkipValidation every annotation of the property-validation module should provide a "skipIf" attribute of type @Expression.
+ 
+ {{{
+ @Required(skipIf = @Expression("#{customer.role eq 'admin'}"))
+ }}}
+ 
+ it should be implemented via a generic approach - that means concrete validation strategies should '''not''' check it manually.
+ 
+ moreover, @Expression should provide an attribute which points to the expression evaluator. so it's possible to create custom expressions by providing a custom evaluator.
+ 
+ furthermore, it should also work for component initialization.
+ 
+ ----
  
  == typesafe constraint parameters ==