it works, thank you very much!!
Michael Sparer wrote:
>
> just a guess:
> from the AjaxFormComopnentUpdatingBehavior's javadoc:
> "NOTE: This behavior does not work on Choices or Groups use the
> AjaxFormChoiceComponentUpdatingBehavior for that. "
>
> regards,
> Michael
>
>
> radovan wrote:
>>
>> Hallo, I have this code:
>>
>> private static final List<String> Orders = Arrays.asList(new String[]
>> { "asc", "desc" });
>> private final IModel<String> model = new
>> Model<String>(Orders.get(0));
>>
>> RadioChoice radioChoice = new RadioChoice("orders", model,
>> Orders);
>> radioChoice.add(new AjaxFormComponentUpdatingBehavior("onchange")
>> {
>> private static final long serialVersionUID = 1L;
>>
>> @Override
>> protected void onUpdate(AjaxRequestTarget target) {
>> System.out.println(model);
>> }
>> });
>>
>> I expected, that model contains selected choice, but this print "null".
>> How I can get value of selected choice? - with Ajax (no submit button)
>>
>
>
--
View this message in context:
http://www.nabble.com/RadioChoice-with-Ajax-tp19855494p19856526.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]