Hi All,
There is an requirement where dialog should display the value of OSGI configuration. How to do that? This is an custom widget and how to call an OSGI Service / fetch OSGI config value in javascript
if there is any way or API please suggest.
Solved! Go to Solution.
Views
Replies
Total Likes
If the values only need to be displayed on loading and not updated during the lifetime of the page, I would use the component JSP to obtain the properties. Otherwise you could create a servlet that does what you want and call it using Javascript.
Views
Replies
Total Likes
If the values only need to be displayed on loading and not updated during the lifetime of the page, I would use the component JSP to obtain the properties. Otherwise you could create a servlet that does what you want and call it using Javascript.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
If I am not wrong accessing osgi config from javascript would essentially require user to have access to felix console. in most cases authors will not have that priviledge.
Views
Replies
Total Likes
Hi All,
my issue is the default hybris importer(/etc/importers/hybris.html) widget(hybrisimporter.js) which is of xtype hybrisimporter has to be customized. On load the fields base store, catalog, dam path etc should be disabled and prepopulated with OSGI configurations of the same.....my question is how to read the configuration values in javascript? Is there any API which is used to directly call OSGI config node under config.author and read the property and value of it..,please suggest different ways of achieving it..,,
Views
Replies
Total Likes
I do not understand your usecase. What I suggest is, write a servlet that loads from these config nodes by referencing the service of that osgi node. Then it can return you a json.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies