Hello,
We are facing a issue with i18n in our component dialogs in AEM6.1
It display the key instead of the values.
We followed the documentation (code sample below)
<componentName.key jcr:primaryType="sling:MessageEntry" sling:key="componentName.key" sling:message="The component value"/>
Restarting the bundle (Apache Sling Internationalization Supportorg.apache.sling.i18n) after installing the project fixes the issues.
Is there a way to always restart that bundle on code deploy? Is there a better fix? Are we missing something?
Views
Replies
Total Likes
Is there a way to restart a bundle every time a package is installed in the package manager?
Views
Replies
Total Likes
Does a bundle which you want to re-start isn't part of your package manager?. If it is part of PM, then no need to re-stat bundle explicitly. After package manager installations, bundles automatically get refreshed.
---Jitendra
Views
Replies
Total Likes
No, the bundle I want to restart is the default i18n from AEM.
Apache Sling Internationalization Support (org.apache.sling.i18n)
Views
Replies
Total Likes
Hi,
OSGI Bundle API does provide a way to play with Bundle like start, stop etc. All you need to have is bundle ID.
User BundleContext to getBundle, And, bundle provides start/stop methods. This should be done in the bunlde-activator class.
API :https://osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html
---Jitendra
Views
Replies
Total Likes
Thank you, I didn't know about Bundle Activator.
I worked.
Views
Replies
Total Likes
Let me know if you got what you are trying to achieve.
murilod74686477 wrote...
Thank you, I didn't know about Bundle Activator.
I worked.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies