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 interface
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
component [MarkupContainer [Component id = registrationForm]] threw an
exception
org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
interface org.apache.wicket.markup.html.form.IFormSubmitListener
targeted at component [MarkupContainer [Component id =
registrationForm]] threw an exception
...
...
...
Caused by: java.lang.reflect.InvocationTargetException
at
com.google.appengine.runtime.Request.process-a82d7b755ed3a9dd(Request.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:43)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)
... 50 more
Caused by: java.lang.NullPointerException
at com.spiritia.auth.Registration$1.onSubmit(Registration.java:186)
at
org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1538)
at org.apache.wicket.markup.html.form.Form.process(Form.java:934)
at
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:896)
... 55 more
On Thu, Oct 7, 2010 at 11:51 PM, Igor Vaynberg-2 [via Apache Wicket] <
[email protected]<ml-node%[email protected]>
> wrote:
> cant help you without seeing more code and stack
>
> -igor
>
> On Thu, Oct 7, 2010 at 2:28 PM, Zeldor <[hidden
> email]<http://user/SendEmail.jtp?type=node&node=2967607&i=0>>
> 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?
> >
> > 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<http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2967576.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=2967607&i=1>
> > For additional commands, e-mail: [hidden
> > email]<http://user/SendEmail.jtp?type=node&node=2967607&i=2>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden
> email]<http://user/SendEmail.jtp?type=node&node=2967607&i=3>
> For additional commands, e-mail: [hidden
> email]<http://user/SendEmail.jtp?type=node&node=2967607&i=4>
>
>
>
> ------------------------------
> View message @
> http://apache-wicket.1842946.n4.nabble.com/RadioChoice-what-s-wrong-tp2967576p2967607.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-tp2967576p2967624.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]