@bogdan, were you successful with updating other\multiple zones using
AjaxResponseRenderer ?
I'm having trouble with it. I can see my zone update response but I have no
idea why isn't it taking effect !

{
"content" : "<progress style='width: 100%;' max='100' value='100' id=
'progressBar'>100<\/progress>",
"inits" : [
{
"evalScript" : [
"alert('Done');"
]
}
],
"zones" : {
"*hello*" : "\nHi\n"
}
}

I'm sure my zone div exists

> <div class="t-zone tapestry-zone" id="*hello*">
>     Original text
> </div>


BTW you don't have to call your method onRefresh(). That would would force
you to handle ALL refresh events from any other components firing an event
with the same name. You can do that following instead:

@OnEvent(component = "progressBarZoneId", value = EventConstants.REFRESH)
> private void updateProgressBar(Object[] context) {


On Wed, Aug 15, 2012 at 11:16 PM, Howard Lewis Ship <hls...@gmail.com>wrote:

> On Wed, Aug 15, 2012 at 2:29 AM, Paul Stanton <p...@mapshed.com.au> wrote:
> > once you receive the event server side, you can add as many zone updates
> as
> > you want to AjaxResponseRenderer, you just need to get a handle to them,
> > either by injection or by walking the component/object model.
> >
> > Have a look at ComponentResources.getEmbeddedComponent()
>
> I'd always prefer to use @InjectComponent (and/or @Inject a Block),
> rather then go through the ComponentResources.
>
> >
> >
> > On 15/08/2012 10:47 AM, bogdan_cm wrote:
> >>
> >> What I want to achieve is a "self refreshing cluster of zones" for a
> >> notification mechanism driven by the autorefresh event of a zonerefresh
> >> mixin.
> >>
> >> To simplify, a multiZoneUpdate that is triggered by a zonerefresh event
> >> from
> >> the mixin.
> >>
> >> How do I capture the "zonerefresh" event from the mixin inside a
> tapestry
> >> method where I could call AjaxResponseRederer and update all the other
> >> zones
> >> on the page. Is this even possible, given that all the other zones,
> which
> >> are not self refreshing, will not have an event that links them to the
> >> request?
> >>
> >>
> >> Thanks very much,
> >> Bogdan.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to