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-tp19855494p19855494.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]

Reply via email to