Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

JS: Creating "native" objects such as treeList

Avatar

Former Community Member

I'm trying to create a treeList and populate it with nodes, however it seems the constructors of these native objects (list, node, treeList, tree, nodeList) are obscured. The only "solution" (really ugly piece of coding) I've found so far is this:

var myTreeList = xfa.resolveNodes("a node that does not exist"); // "fool" the framework to give me an empty treeList.

myTreeList.append(/* start populating */);

I simply refuse to write that. Any ideas?

0 Replies