I have a requirement where i need to update the status of an icon based on an
org.osgi.service.event.Event
the icon needs to be hidden or visible or title needs to be changed based on the value of that event. How can we send this event to the front end javascript so that i can update the ui according to this?
Solved! Go to Solution.
Views
Replies
Total Likes
This is not that easy for some reasons:
With these constraints I think that you should design your application in a way, which is capable to avoid this dependency, mostyl for scalability reasons.
Views
Replies
Total Likes
Hi @tasunil,
How are you triggering the event? If you cannot get the event value in HTML, you can create a node in JCR in a specified location with true or false values, and then once the event is triggered, in JS consume that node value.
Thanks,
Kiran Vedantam
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi,
Do you need to update the icon asynchronously or on page load.
If it is on page load then you can read those node values using nodepath.json and update it.
But if there is a monitoring/dashborad page that needs to be updated, in that case, you need to write a polling service in javascript to fetch the same data and update the icon, title.
Views
Replies
Total Likes
Views
Replies
Total Likes
This is not that easy for some reasons:
With these constraints I think that you should design your application in a way, which is capable to avoid this dependency, mostyl for scalability reasons.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies