Re: Different Zone Update's

2014-11-16 Thread Geoff Callender
I've raised a JIRA for client-side pub/sub. https://issues.apache.org/jira/browse/TAP5-2416 On 4 Sep 2014, at 5:57 pm, Geoff Callender wrote: > In an AJAX request the server-side would have no way of knowing how many > subscribers there are within the page unless it exactly rebuilds the ent

Re: Different Zone Update's

2014-09-04 Thread Lance Java
I've raised a pub/sub jira with an initial brain dump. I'm leaning towards adding it to ComponentResources. Please add your suggestions / thoughts. https://issues.apache.org/jira/browse/TAP5-2383

Re: Different Zone Update's

2014-09-04 Thread Geoff Callender
In an AJAX request the server-side would have no way of knowing how many subscribers there are within the page unless it exactly rebuilds the entire page state. For example some subscribers could be within a loop, and they might be conditional. However, the client-side has the full page state,

Re: Different Zone Update's

2014-09-03 Thread Sumanth
Exactly, It's too messy to do it that way, and hence I had to post it here to find an alternative for it. We also need a decoupled solution. We thought of pub-sub but have no idea on how to implement it (Cant find much about this topic). So if anyone knows of such a way to do it , this would hel

Re: Different Zone Update's

2014-09-03 Thread Thiago H de Paula Figueiredo
On Wed, 03 Sep 2014 19:29:36 -0300, Lance Java wrote: This topic had come up a few times. I agree that a serverside pub sub mechanism would be great for decoupling. I've got a few ideas for how it would work. It would be nice if subscription handlers could be done via annotations or naming

Re: Different Zone Update's

2014-09-03 Thread Lance Java
This topic had come up a few times. I agree that a serverside pub sub mechanism would be great for decoupling. I've got a few ideas for how it would work. It would be nice if subscription handlers could be done via annotations or naming conventions, similar to event handlers. On 3 Sep 2014 23:09,

Re: Different Zone Update's

2014-09-03 Thread Geoff Callender
I think the issue here is that he'd like one deeply nested component, let's call it Z, to be refreshed when another deeply nested component, let's call it N, that doesn't know about Z, is refreshed. One way is to bubble up an event from N until it reaches a common parent, C, which in this examp

Re: Different Zone Update's

2014-09-03 Thread Thiago H de Paula Figueiredo
On Wed, 03 Sep 2014 13:40:53 -0300, Sumanth wrote: Hello Experts, Hi! I have encountered one more hurdle now regarding zones, I have a layout component>componentA>componentB>componentC>NotificationComponent>Zone This zone is a count zone and is updated using a mixin (periodiczonerefr

Different Zone Update's

2014-09-03 Thread Sumanth
Hello Experts, I have encountered one more hurdle now regarding zones, I have a layout component>componentA>componentB>componentC>NotificationComponent>Zone This zone is a count zone and is updated using a mixin (periodiczonerefresh mixin). I have a notification page in which i have a Zone(a ta