Hello, what happens is that I have a component and this has a sling model java, my idea is that I make a request with a url and I bring me the title of the page and save it in a getter, the code would be as follows:
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Hi,
The problem with your code is that the dependency should be wrapped with your bundle together so this is available at runtime. You can solve this by following this tutorial: https://www.linkedin.com/pulse/how-add-third-party-bundle-you-aem-package-veena-vikraman/. But beyond that, it seems a little bit odd what you are trying to do, if the page you are trying to get the title is an AEM one, it would be better to get it as a Page and use something like page.getTitle().
Hope this helps.
Views
Replies
Total Likes
Hi,
The problem with your code is that the dependency should be wrapped with your bundle together so this is available at runtime. You can solve this by following this tutorial: https://www.linkedin.com/pulse/how-add-third-party-bundle-you-aem-package-veena-vikraman/. But beyond that, it seems a little bit odd what you are trying to do, if the page you are trying to get the title is an AEM one, it would be better to get it as a Page and use something like page.getTitle().
Hope this helps.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies