AnsweredAssumed Answered

Problem with getChildByName

Question asked by dwighth on Aug 10, 2007
Latest reply on Jun 23, 2008 by agatap
I always get a null from NodeService.getChildByName() and FileFolderService.resolveNamePath().  Since FileFolderService.resolveNamePath() uses NodeService.getChildByName(), I suspect the problem is with the latter.

I'm trying to get Company Home as my test, but to no avail. I've tried every combination of qualified association type name and child name that I can think of, but none of them works. The following is the combination that I think is the correct one:

nodeService.getChildByName(root, ContentModel.ASSOC_CONTAINS, "app:company_home");

I'm working with 2.1 and the JCR methods seem to work for me, so I have a work around, but I'd rather be using the FileFolderService methods.

Any ideas?

Thanks in advance;