You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by meduolis <me...@gmail.com> on 2010/10/18 22:05:36 UTC
Ajax component's constructor target parameter
Hi, do we need to check if target is null? Is it possible to get null pointer
exception here?
Example
onSubmit(AjaxRequestTarget target, Form<?> form) {
// is it possible to get null target here?
}
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-component-s-constructor-target-parameter-tp3000995p3000995.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax component's constructor target parameter
Posted by Pedro Santos <pe...@gmail.com>.
If you are using an AjaxFallbackButton then you need to check for NPE
On Mon, Oct 18, 2010 at 6:05 PM, meduolis <me...@gmail.com> wrote:
>
> Hi, do we need to check if target is null? Is it possible to get null
> pointer
> exception here?
>
> Example
>
> onSubmit(AjaxRequestTarget target, Form<?> form) {
> // is it possible to get null target here?
> }
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Ajax-component-s-constructor-target-parameter-tp3000995p3000995.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Pedro Henrique Oliveira dos Santos