Last active
November 17, 2015 17:46
-
-
Save nateyolles/9a7ea78d584318faa2aa to your computer and use it in GitHub Desktop.
Get a checkbox value in an AEM/Sling Sightly Java bean
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Sightly classes extending com.adobe.cq.sightly.WCMUse or com.adobe.cq.sightly.WCMUsePojo | |
*/ | |
Boolean checkbox = getProperties().get("myBooleanCheckbox", Boolean.class); | |
/* | |
* Set the default value. | |
*/ | |
Boolean checkbox = getProperties().get("myBooleanCheckbox", false); | |
Boolean checkbox = getProperties().get("myBooleanCheckbox", true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment