Asynchronous component interactions in AEM
Hi Folks ,
Just wondering to see the best approach to achieve asynchronous component interactions in CQ5 ?
Lets consider an use case in which a custom tabbed component is used . The tabbed component simply renders tabs with parsys where author can drag and drop some custom components in each tab . The custom components in the tab will make some service calls . What I would like to achieve is that on click or selection of tab , the component under the tab should make an asynchronous service call to render itself , Not on page refresh . I can achieve this functionality by controlling the CSS to show or hide div's but I believe it wouldn't be a optimal and good approach .
Another use case can be lets say 'AddtoCart' component and 'CartSummary' components are on same page and on asynchronous add to cart action cart summary should get updated .
Can a state change form one component trigger some events that other components can listen to and update asynchronously ?
Thanks in advance