You are missing the zone parameter on your eventLink component. On Sun, Aug 12, 2012 at 2:31 PM, Angelo C. <angelochen...@gmail.com> wrote:
> Hi, > > I am trying out AjaxResponseRenderer to update multiple zones in a page, > here is the code: > > java: > > @Inject > private AjaxResponseRenderer ajaxResponseRenderer; > > @Inject > Block redBlock; > > @Inject > Block blueBlock; > @Component(parameters = {"event=ModeUpdate"}) > private EventLink UpdateOff; > > public void onModeUpdate(@RequestParameter("mode") String value) { > ajaxResponseRenderer.addRender("zone1", redBlock); > ajaxResponseRenderer.addRender("zone2", blueBlock); > } > > here is the template: > > <t:zone id="zone1" t:id="zone1"></t:zone> > <t:zone id="zone2" t:id="zone2"></t:zone> > > < a t:type="eventLink" t:parameters="prop:{'mode':'off'}" > t:id="UpdateOff">Turn it off< /a> > > <t:block id="redBlock"> > <p>red</p> > </t:block> > > <t:block id="blueBlock"> > <p>blue</p> > </t:block> > > I was hoping if I click the link above, zone1 and zone2 got updated, but > not > the case, I'm getting this error: > Page must be specified before initializing for partial page render. > > What I'm missing here? thanks > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/AjaxResponseRenderer-help-tp5715295.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 > >