myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Myfaces Wiki] Update of "Extensions/Validator/Getting Started/Constraint Aspects" by GerhardPetracek
Date Sun, 31 May 2009 17:56:25 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:

  @Required(parameters = {ViolationSeverity.Warn.class, DisplayGlobal.class})
- '''that's it!!!'''
+ '''That's it!!!'''
  You can see - the final usage is typesafe, shorter and the constraint isn't aware of the
specific values behind.[[BR]]
+ So if you have existing constraints you just have to add an attribute of the type '''Class<?
extends ValidationParameter>[]''' and your constraint can automatically use any feature
provided via a parameter implementation of ExtVal or an ExtVal add-on.
  Stop reading here if you don't like to implement a custom parameter or if you don't like
to query information of a parameter

View raw message