QuestionQ13

No official topic/domain breakdown was publicly listed on the Adobe certification page or prep guide page I could access for AD0-E137

A developer is building a dialog for a component that includes a checkbox field. After saving the component configuration, the developer finds that the checkbox value is stored in JCR as a String type.

What should be done so the checkbox value is stored in JCR as a Boolean type?

Explanation

A dialog can submit a @TypeHint for the checkbox property with the value Boolean. Sling uses that hint when persisting the submitted value, causing the JCR property to be stored as a Boolean rather than a String. Adobe’s dialog example uses a hidden field named ./multiSelect@TypeHint with value Boolean for a checkbox property.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!