Hi bradc10998411,Do you mean parsing a json to display as tree without actually creating the nodes in JCR?This was possible in Classic UI using CQ.Ext.tree.TreePanel but in Touch UI am yet to find anything similar.
Hi karloe75358780,That can be because the AEM plugin is syncing the incorrect root folder.To confirm, right click on the ui.apps directory and click on Properties.Next in AEM, reset the path to your jcr_root directory as shown below:If it is the correct path, then navigate to the one where it shows...
Hi kusumam24182037,The above links should clear your understanding.Adapting to a SlingHttpServletRequest gives you more options to manipulate resources in general.Moreover you can even access request params if you do so.Adapting to a resource can be done when you just need resource properties and t...
Hi karthickv99865601,Can you please check if this is of any help since this query is not AEM specific?The suggestion is to leverage StringBuffer to split the stream and read it in chunks rather than one whole stream.https://stackoverflow.com/questions/17084657/most-robust-way-of-reading-a-file-or-s...
Hi pdg2491,pdg2491I don't think you can include Sling models in components because Sling models are annotation driven POJOs deployed via OSGi bundle.As stated in the Sling documentation:The Java Use Provider can be used to load OSGi services, objects exported by bundles or backed by a Resource.Slin...
If you want to manipulate the files using Java then you can use relative paths instead and take advantage of ClassLoader.e.g. to read a file test.json inside test-folder under src/main/resources and get its contents in Java code:InputStream is = getStreamFromResources("test-folder/test.json");printF...
I have seen parameters being passed to the Use API while invoking the same in HTL.e.g.<div data-sly-use.params="${'params.js' @ value1='feike', value2='visser', seperator=' '}"> ${params.newValue}</div>Is it possible to pass parameters to the Use API function call instead of the API invocation itse...
Does not work in AEM 6.4 GA.You can try using a small use js file and pass it the test string value as shown below:Or go for Java.filepath.js:use(function () { var testStr= this.value; var retValue = currentPage.path.toLowerCase().contains(testStr.toLowerCase()); return { hasString: ...
Then goto /apps/system/config in CRXDE and double click on the factory config to check if it is the duplicate one. If yes, then delete it or move it to /tmp as mentioned by Lisa earlier.Once done, come back and cross check that you have only single entry in configMgr which is from the application co...