Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
On the page: https://sling.apache.org/documentation/the-sling-engine/sling-api-crud-support.html#updating-a-property
Paragraph:
Sling API CRUD
The variable name myNode in the code example should probably be "myResource", if I understand the intention of the code correctly.
Resource myResource = resourceResolver.getResource("/myresource"); ModifiableValueMap properties = *myNode*.adaptTo(ModifiableValueMap.class);
Attachments
Attachments
Issue Links
- links to