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/Versions/Versions/UpgradeGuide" by GerhardPetracek
Date Wed, 03 Feb 2010 16:12:16 GMT
Dear Wiki user,

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

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

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

  = Upgrade to ExtVal r3 =
  
+ == Using ExtVal r3 in existing Applications ==
+ This is by far the most important point you have to know about this version.
+ With meta-data based validation the required attribute of input components is obsolete.
+ 
+ Details:
+ The support for the required attribute was removed due to issues with dynamic meta-data
and severity based validation.<<BR>>
+ That means all components which use e.g. required="true" "stop using" information of this
attribute.
+ So only meta-data based required markers like @Required, Column(nullable = false), @NotNull,...
are supported.<<BR>>
+ However, if you don't need the basic features mentioned before, you just have to de-register
ValidationInterceptor (btw. PropertyValidationInterceptor) and register a custom interceptor.
+ So you have 3 possibilities:
+  * Use meta-data instead of the required attribute in every case
+  * Provide your custom interceptor
+  * Create an add-on which re-introduce the support e.g. based on a marker 
+ 
  == Simple Usage ==
- If you just used the annotations of MyFaces ExtVal, you just have to use the new jar files.
  
  However, since we fixed an issue @Length and @Pattern won't validate empty values any more.
  That means previous versions of ExtVal perform an implicit required validation in some cases.

Mime
View raw message