Hi,
When I use the method setProperty("Name", String[]) only the Name and type are added to the JCR. The Value is empty. But if I use setProperty("Name", "Value") everything is fine.
pageResource = page.adaptTo(Resource.class); Resource jcrContentResource = pageResource.getChild(JcrConstants.JCR_CONTENT); Node pageNode = jcrContentResource.adaptTo(Node.class); try { String[] tempIds = ids.toArray(new String[ids.size()]); pageNode.setProperty("cq:tags", tempIds); LOG.debug("Stuff of tags: "+tempIds[0]); LOG.debug("Tag size: "+tempIds.length); resourceResolver.commit(); } catch (Exception e) { LOG.error(e.getMessage(), e); }
Please see attached image.
What code be the problem?
Note: CQ version is 5.6.1
Thank you.
Cheers,
Viren.