Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B04E69FE4 for ; Fri, 15 Jun 2012 08:31:03 +0000 (UTC) Received: (qmail 39595 invoked by uid 500); 15 Jun 2012 08:31:02 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 39567 invoked by uid 500); 15 Jun 2012 08:31:02 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 39558 invoked by uid 99); 15 Jun 2012 08:31:02 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 08:31:02 +0000 Received: from localhost (HELO mail-gh0-f173.google.com) (127.0.0.1) (smtp-auth username mgrigorov, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jun 2012 08:31:01 +0000 Received: by ghrr14 with SMTP id r14so2416040ghr.32 for ; Fri, 15 Jun 2012 01:31:01 -0700 (PDT) Received: by 10.236.182.67 with SMTP id n43mr7003925yhm.66.1339749061026; Fri, 15 Jun 2012 01:31:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.251.14 with HTTP; Fri, 15 Jun 2012 01:30:30 -0700 (PDT) In-Reply-To: References: From: Martin Grigorov Date: Fri, 15 Jun 2012 11:30:30 +0300 Message-ID: Subject: Re: "ChangeListener" for the RadioGroup Component To: users@wicket.apache.org Content-Type: text/plain; charset=UTF-8 Something like: final Label label = ... RadioChoice sites = new RadioChoice("site", SITES); sites.add(new AjaxFormChoiceComponentUpdatingBehavior() { @Override protected void onUpdate(AjaxRequestTarget target) { label.setDefaultModelObject(sites.getModelObject()); target.add(label); } }); On Fri, Jun 15, 2012 at 11:25 AM, Dmitriy Neretin wrote: > Thanks! > > Can you describe how can I use the AjaxFormChoiceComponentUpdatingBehavior() > with the label? > > 2012/6/15 Martin Grigorov > >> Hi, >> >> #onSelectionChanged() works only if you override >> #wantOnSelectionChanged() to return true. >> Otherwise you can also use AjaxFormChoiceComponentUpdatingBehavior() >> and update the label with Ajax. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >> For additional commands, e-mail: users-help@wicket.apache.org >> >> -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org