I am working on a migration from 6.4 to 6.5. We have a basepage component which has a select dropdown for the field pageType. Please see the below screenshot.
The datasource node is responsible to populate the dropdown. The datasource node points to an html page which calls the Model class(As seen in above screenshot). Model class is populating the data based on language configuration.
Issue :
In AEM 6.4 local the dropdown is getting populated without any issue. But when I check the same in my AEM 6.5 local the dropdown is not getting populated. (Note : This is happening before as well as after doing the Coral 3 migration.)
Can someone please help me understand what might be the possible cause?
Solved! Go to Solution.
Views
Replies
Total Likes
Can you confirm if the model class is getting executed?
If model class is working as expected, then we need to see the datasource from where the data is loading in the Sling Model.
Also you can remove the absolute path for the resource type and provide a relative path i.e. instead of /apps you can start from roche/diagnostics.......
Thanks!
Can you confirm if the model class is getting executed?
If model class is working as expected, then we need to see the datasource from where the data is loading in the Sling Model.
Also you can remove the absolute path for the resource type and provide a relative path i.e. instead of /apps you can start from roche/diagnostics.......
Thanks!
Views
Replies
Total Likes
Views
Replies
Total Likes
You don't need to necessarily create a model to populate a dropdown that can be done in many other ways. I prefer using a servlet to create dropdown e.g.
https://aemlab.blogspot.com/2019/07/aem-touch-ui-dropdown-from-json.html
https://github.com/arunpatidar02/aem63app-repo/blob/master/java/DemoDailogDropdown.java
Views
Likes
Replies
Views
Likes
Replies