Tnx.

2009/2/3 Igor Vaynberg <[email protected]>:
> see ajaxformchoicecomponentupdatingbehavior
>
> -igor
>
> On Tue, Feb 3, 2009 at 6:04 AM, Martin Makundi
> <[email protected]> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to