I would like access a view in an Editable Area, with SSJS
I’ve tried somthing like this
var callback1:com.ibm.xsp.component.xp.XspCallback = getComponent("callback1");
print(callback1.getChildren().get(0).getValue())
but the only result was the Object ID. Is there a chance to get the whole object?
I think it is easy but I have no idea how to do it.
Contents of an editable area aren’t children, they’re facets:
Replace facetName with whatever you named the facet when you defined the editable area. If the above expression returns anything other than null, then the editable area has content.