I am new to the macro development and I have the following issue with my macro plugin.
I am creating a template in a .vm
file which I am populating from a RestService, but when there are multiple instances of the macro on a page I cannot address each of the elements in the javascript which leads to failing behaviour of the macro as there now multitudes of each component to which I want to bind ajax calls.
So what should I do to namespace my components properly?
I guess I could use the macro id and add it to each button in the .vm
but how can I pass the id to the js context to address it in a velocity like way?
I hope I made my issue clear, communicating a problem is hard…
Thanks in advance.