Tnx. 2009/2/3 Igor Vaynberg <igor.vaynb...@gmail.com>: > see ajaxformchoicecomponentupdatingbehavior > > -igor > > On Tue, Feb 3, 2009 at 6:04 AM, Martin Makundi > <martin.maku...@koodaripalvelut.com> wrote: >> Hi! >> >> Does Wicket have RadioGroup ajax update behavior built in like it does >> wantOnSelectionChangedNotifications? >> >> It seems like a small piece of code that would better have core support: >> >> /** >> * @param radioGroup >> * @param listener >> * @param radio >> */ >> private void addAjaxEvent(final RadioGroup<Filter> radioGroup, final >> AjaxRequestListenerInterface listener, >> final Radio<Filter> radio) { >> radio.add(new AjaxEventBehavior(JavaScriptConstants.ONCHANGE) { >> @Override >> protected void onEvent(AjaxRequestTarget target) { >> radioGroup.processInput(); >> listener.addComponents(target); >> } >> >> /** >> * @see org.apache.wicket.ajax.AjaxEventBehavior#getEventHandler() >> */ >> @Override >> protected final CharSequence getEventHandler() >> { >> return generateCallbackScript(new >> AppendingStringBuffer("wicketAjaxPost('").append( >> getCallbackUrl()).append("', wicketSerialize(Wicket.$('" + >> radio.getMarkupId() + "'))")); >> } >> }); >> } >> >> * >> http://javathoughts.capesugarbird.com/2007/06/ajax-enabled-radio-group-for-wicket-12x.html >> >> ** >> Martin >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org