Hi,
can you show the code you use to build radio buttons?
Hi,
I am new to Apache wicket. Can you please help me how to get the selected
radio choice option in wicket.I have to save the some recruitment form with
some fileds which we have to give dynamically .I have a static dropdown
with list
Property 'selected' is not setted according to the selected GENDER? Does
property 'selected' remains null when you press 'save' button ?
add( new RadioChoiceString(radioButton, new PropertyModelString(this,
selected ),GENDER ).setSuffix());
Here I taken Gender as a list of values dynamically .
Your solution should work the way it is. It's likely that you have a
problem with form's submission. Are you sure that when you press 'save'
button the form is submitted? And are you sure that radioButton has been
added to the form that should be submitted by 'save' button?
how can i set the
Conceptually, it's no different than any other form control. You associate
the control with a named property in your model, when the form is
submitted that property will be populated with the chosen value. If the
user hasn't chosen ANY value, yes, you can get null.
From: chaitanya b
Just like anything else: You put the desired value in your model Wicket
handles selecting the correct button.
From: chaitanya b harikaareddyit...@gmail.com
To: users@wicket.apache.org
Date: 05/17/2012 06:06 AM
Subject:Re: How to save the selected radio choice option