Sure, but I posted pretty much everything related to radiochoice :) So I am
just not doing some obvious important steps for making RadioChoice work :)
Code, with all non-related parts removed, looks like that:
public class Registration extends WebPage {
public Registration() {
add(new FeedbackPanel("errorMsg"));
//New user registration form
Form<String> regForm = new Form<String>("registrationForm",
new Model<String>()) {
static final List<String> NUMBERS =
Arrays.asList(new String[] { "1", "2", "3" });
private RadioChoice<String> rc;
{
RadioChoice<String> rc = new
RadioChoice<String>("numberRadioChoice", new Model<String>(""),
NUMBERS).setSuffix("");
add(rc.setRequired(true));
}
@Override
public void onSubmit() {
String _numbers = rc.getModelObject();
System.out.println(_numbers);
}
};
add(regForm);
}
}
On Fri, Oct 8, 2010 at 3:58 PM, Zilvinas Vilutis [via Apache Wicket] <
[email protected]<ml-node%[email protected]>
> wrote:
> Oh come on! no one will want to steal your non-working code!
>
> Use http://pastebin.com/ to show your code if you want someone's help ;)
>
> Žilvinas Vilutis
>
> Mobile: (+370) 652 38353
> E-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=2968370&i=0>
>
>
>
> On Thu, Oct 7, 2010 at 11:35 PM, Zeldor <[hidden
> email]<http://user/SendEmail.jtp?type=node&node=2968370&i=1>>
> wrote:
>
> >
> > 186 is System.out.println(_numbers);
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2967903.html<http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2967903.html?by-user=t>
>
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden
> > email]<http://user/SendEmail.jtp?type=node&node=2968370&i=2>
> > For additional commands, e-mail: [hidden
> > email]<http://user/SendEmail.jtp?type=node&node=2968370&i=3>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden
> email]<http://user/SendEmail.jtp?type=node&node=2968370&i=4>
> For additional commands, e-mail: [hidden
> email]<http://user/SendEmail.jtp?type=node&node=2968370&i=5>
>
> --------------------
> nothing is impossible
>
>
> ------------------------------
> View message @
> http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2968370.html
> To unsubscribe from RadioChoice - what's wrong?, click
> here<http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=2967576&code=cGdyb25raWV3aWN6QGdtYWlsLmNvbXwyOTY3NTc2fC0xMTUwMjA4NDM=>.
>
>
>
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2968833.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]