Hi, I am trying to get through with the very basics of Wicket - radiochoice. But somehow I got stuck and all solutions I tried made my problems even worse... So, what am I doing wrong?
I have this code: 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)); } String _numbers = rc.getModelObject(); System.out.println(_numbers); When I submit the form I get: NullPointerException What am I doing wrong then? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2967576.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org