Hmmm...then that leaves a question open on my side that why I didn't get
NPE with that code?
One more thing I observed and you might have already taken care of in your
actual code, but any reason not writing generics type
TextField<Type>/Model<Type> etc in your component?

-Mihir.


On Fri, Jun 27, 2014 at 10:51 PM, kumar ramanathan <kumarramana...@gmail.com
> wrote:

> Thanks for reviewing the issue.I have actually fixed my problem.I have used
> setconvertemptyinputstrngtonull method.
>
>                 TextField memberIdField = new
> TextField("memberId",memberIdModel);
>                 *memberIdField.setConvertEmptyInputStringToNull(false);*
>                 TextField lossIdField = new
> TextField("lossId",lossIdModel);
>                 lossIdField.setConvertEmptyInputStringToNull(false);
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-to-handle-null-pointer-exception-while-submit-button-tp4666392p4666404.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
>
>

Reply via email to