Re: RadioChoice - what's wrong?

2010-10-11 Thread Jeremy Thomerson
Do you use Eclipse? There is a compiler warning that you can turn on (it should be on by default) that warns against this problem whenever you may inadvertently be "hiding" other variables. I suggest to everyone I teach that they turn it on (and perhaps even turn it up from warning to error), and

Re: RadioChoice - what's wrong?

2010-10-10 Thread Zeldor
It does! Thanks a lot! I knew it was something stupid and trivial. Huh, but it should not cause that still - I was defining TextFields in same way and then again to add parameters and it went fine. On Sun, Oct 10, 2010 at 7:11 PM, Andrea Del Bene [via Apache Wicket] < ml-node+2970427-965616561-15

Re: RadioChoice - what's wrong?

2010-10-10 Thread andrea del bene
Hello Zeldor, I've red your code and it seems that you define variable rc two times: the first time as form private field and the second time just below between braces. When onSubmit method calls rc.getModelObject() it uses private field rc which was not initialized and so triggers a NullPoin

Re: RadioChoice - what's wrong?

2010-10-10 Thread Zeldor
So maybe someone could just show me working RadioChoice code with OnSubmit part? Just how to properly display it and grab data from it :) That should solve the problem, as I would compare and see what I'm doing wrong. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ra

Re: RadioChoice - what's wrong?

2010-10-08 Thread Zeldor
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() {

Re: RadioChoice - what's wrong?

2010-10-08 Thread Zilvinas Vilutis
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:   cika...@gmail.com On Thu, Oct 7, 2010 at 11:35 PM, Zeldor wrote: > > 186 is System.out.println(_numbers)

Re: RadioChoice - what's wrong?

2010-10-07 Thread Igor Vaynberg
if number is null it will just print "null" -igor On Thu, Oct 7, 2010 at 11:49 PM, Zeldor wrote: > > Well, _numbers is null :) That's why I wonder what's wrong with getting the > ObjectModel - I must be doing smth wrong there :) > > On Fri, Oct 8, 2010 at 8:43 AM, Igor Vaynberg-2 [via Apache Wic

Re: RadioChoice - what's wrong?

2010-10-07 Thread Zeldor
Well, _numbers is null :) That's why I wonder what's wrong with getting the ObjectModel - I must be doing smth wrong there :) On Fri, Oct 8, 2010 at 8:43 AM, Igor Vaynberg-2 [via Apache Wicket] < ml-node+2967914-1064517663-152...@n4.nabble.com > wrote: > in that case either your System or your S

Re: RadioChoice - what's wrong?

2010-10-07 Thread Igor Vaynberg
in that case either your System or your System.out is null :) -igor On Thu, Oct 7, 2010 at 11:35 PM, Zeldor 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 > Sent fr

Re: RadioChoice - what's wrong?

2010-10-07 Thread Zeldor
186 is System.out.println(_numbers); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2967903.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: RadioChoice - what's wrong?

2010-10-07 Thread Jeremy Thomerson
On Thu, Oct 7, 2010 at 5:04 PM, Zeldor wrote: > Caused by: java.lang.NullPointerException >at com.spiritia.auth.Registration$1.onSubmit(Registration.java:186) > The error is obviously at Registration.java:186 - please show us that code if you can't figure it out. -- Jeremy Thomerson ht

Re: RadioChoice - what's wrong?

2010-10-07 Thread Zeldor
I doubt anything else is needed, it throws NullPointerException at syso attempt. Rest of the form is working properly - I can of course post more code, but what would be needed? Stacktrace is pretty generic too... org.apache.wicket.RequestCycle logRuntimeException: Method onFormSubmitted of inte

Re: RadioChoice - what's wrong?

2010-10-07 Thread Igor Vaynberg
cant help you without seeing more code and stack -igor On Thu, Oct 7, 2010 at 2:28 PM, Zeldor wrote: > > 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