@jayv25585659 To follow best practice, create a service that holds the business logic and inject that service both into the servlet and your OSGi component.
If it is really required, than use below HTTP call to servlet:URL url = new URL("http://localhost:4502/bin/myservlet");HttpURLConnection conn...
@Jitesh07
Make sure your dialog structure is correct, especially around:
xml
/items
/column
/items
/dropdown (select field)
sling:resourceType="granite/ui/components/coral/foundation/form/select"
/datasource
sling:resourceType="/apps/mysite/components/dyna...
The issue occurs because the browser serves the previous page from its cache without making a new network request, leading to outdated content.
To fix this, proper cache-control headers (no-store, no-cache, must-revalidate) should be set on language switch pages to force a reload.Try below approache...
@SDusane Use no-cache header<LocationMatch "^/content/graphql/.*"> Header always set Cache-Control "no-store, no-cache, must-revalidate, private" Header always set Pragma "no-cache" Header always set Expires "0"</LocationMatch>
/content/graphql --> It should be GraphQL p...
@Amreen1 Below are the ways we can achieve same:
1. Use OSGI configurations to read value for same configuration / variable on different places2. write variable value under /var/<project_name>/xyz node and access same in your different application.
3. Expose it to 3rd party system and perform read ...
@SachithaKo2 Follow below blog to resolve this current issue to merge template types and consume.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-allow-use-of-template-type-from-a-different-project/td-p/432145