From 0f4cd361c3e65b03ca23e68542eb1bf0b666f0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Palcs=C3=B3?= Date: Tue, 1 Jan 2019 20:53:41 +0100 Subject: [PATCH] TAP5-2075 - Release notes for checkbox validators --- 55_RELEASE_NOTES.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/55_RELEASE_NOTES.md b/55_RELEASE_NOTES.md index b754fec943..c0649753cb 100644 --- a/55_RELEASE_NOTES.md +++ b/55_RELEASE_NOTES.md @@ -18,10 +18,16 @@ out-of-the-box and may be overriden: * `PropertiesFile`: blocks access to assets with `.properties` endings (case insensitive). * `XMLFile`: blocks access to assets with `.xml` endings (case insensitive). + # New subproject/JAR: genericsresolver-guava Tapestry's own code to resolve the bound types of generic types and methods, based around GenericsUtils, couldn't handle some cases, as discovered in TAP5-2560. Fixing the code to handle these cases turned out to not be feasible, so we introduced a new JAR, genericsresolver-java, which replaces GenericsUtils with Google Guava's TypeResolver and associated classes. To use it, just add genericsresolver-java, which is versioned in the same way as the other Tapestry JARs, -to the classpath of your projects and make sure a not too-old version of Google Guava is also in the classpath. \ No newline at end of file +to the classpath of your projects and make sure a not too-old version of Google Guava is also in the classpath. + +# Validatior for Checkbox component +If you want to enforce that a checkbox is checked or unchecked you can now use the new validators: +* Checkbox must be checked: validator="checked" or @AssertTrue JSR-303 Bean validation annotation +* Checkbox must be unchecked: validator="unchecked" or @AssertFalse JSR-303 Bean validation annotation