Cannot serve request to /content/demo/us/en/home/jcr:content/root/responsivegrid/testrender.model.json in org.apache.sling.servlets.get.DefaultGetServlet.
I am working on an AEM spa project using angular as the frontend module.
I am facing the above problem for each component, AEM dialog values are not reflecting on the save of the dialog, if we are observing in the browser network it's giving the above model error. Only on a refresh of the page values are displaying on the screen.
Please help me to resolve this problem.
I have to create almost 80 custom components in our project, If I started to write a model class for each component then I will end up creating 80 model classes I cannot write 80 model classes to make reflect on the save of each component.
Please suggest to me how to resolve this problem !!
I am using JSON editor in my AEM component to store data as JSON and read data directly into the Angular component to bypass the slingModel. (No need for Sling Model in this case)
Please note that the selector "model" in the JSON path is because of the selector of @Exporter annotation(org.apache.sling.models.annotations.Exporter)whose default value is model (to expose the component data/Sling Model using that selector)
Now that you are not using Sling model/Exporter + accessing the path using model selector, you are getting "Invalid recursion selector value model"
Recommendation is to use Sling Model with Exporter framework to expose component data. If you are following alternate means, use the respective JSON path as is to read from Frontend.