Re: ajaxfallback

2010-04-07 Thread fachhoch

I add to target at several places, lot of them , now changing all of these
will certainly take time looking at each callback method .  Need suggestions
if aop can help me  , or can I override some  method  in wicket which
provides the AJaxRequestTarget even when   java script is not enabled.
changing is lot of work is there any other way ?
  

Gerolf Seitz wrote:
 
 before adding a component to the ajaxrequesttarget, simply check that the
 target
 is not null (aka the request is an ajax request). otherwise you don't need
 to add the
 components to the ajaxrequesttarget anyway.
 
   gerolf
 
 On Wed, Apr 7, 2010 at 12:20 AM, tubin gen fachh...@gmail.com wrote:
 
 I am  using  AjaxLink all my application and we add to AjaxRequestTarget
 for
  repainting components , now we want to change it to use AjaxFallback ,
 but
 in ajaxfallback AjaxRequestTarget is null and I get null pointer
 exception.Please tell me if there is any way I can move from  AjaxLink to
 AjaxFallBack link  without breaking ?

 
 

-- 
View this message in context: 
http://old.nabble.com/ajaxfallback-tp28158339p28163291.html
Sent from the Wicket - User 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



Re: ajaxfallback

2010-04-07 Thread Jeremy Thomerson
changing isn't really that much work.  it's a two line change.  and you have
to go through and replace each new AjaxLink with new AjaxFallbackLink
anyway.  It's a simple search and replace.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Apr 7, 2010 at 5:48 AM, fachhoch fachh...@gmail.com wrote:


 I add to target at several places, lot of them , now changing all of these
 will certainly take time looking at each callback method .  Need
 suggestions
 if aop can help me  , or can I override some  method  in wicket which
 provides the AJaxRequestTarget even when   java script is not enabled.
 changing is lot of work is there any other way ?


 Gerolf Seitz wrote:
 
  before adding a component to the ajaxrequesttarget, simply check that the
  target
  is not null (aka the request is an ajax request). otherwise you don't
 need
  to add the
  components to the ajaxrequesttarget anyway.
 
gerolf
 
  On Wed, Apr 7, 2010 at 12:20 AM, tubin gen fachh...@gmail.com wrote:
 
  I am  using  AjaxLink all my application and we add to AjaxRequestTarget
  for
   repainting components , now we want to change it to use AjaxFallback ,
  but
  in ajaxfallback AjaxRequestTarget is null and I get null pointer
  exception.Please tell me if there is any way I can move from  AjaxLink
 to
  AjaxFallBack link  without breaking ?
 
 
 

 --
 View this message in context:
 http://old.nabble.com/ajaxfallback-tp28158339p28163291.html
 Sent from the Wicket - User 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




Re: ajaxfallback

2010-04-06 Thread Gerolf Seitz
before adding a component to the ajaxrequesttarget, simply check that the
target
is not null (aka the request is an ajax request). otherwise you don't need
to add the
components to the ajaxrequesttarget anyway.

  gerolf

On Wed, Apr 7, 2010 at 12:20 AM, tubin gen fachh...@gmail.com wrote:

 I am  using  AjaxLink all my application and we add to AjaxRequestTarget
 for
  repainting components , now we want to change it to use AjaxFallback , but
 in ajaxfallback AjaxRequestTarget is null and I get null pointer
 exception.Please tell me if there is any way I can move from  AjaxLink to
 AjaxFallBack link  without breaking ?



Re: ajaxfallback

2010-04-06 Thread Jeremy Thomerson
Read the javadocs?

Callback for the onClick event. If ajax failed and this event was generated
 via a normal link the target argument will be null


http://wicket.apache.org/docs/1.4/wicket/apidocs/org/apache/wicket/ajax/markup/html/AjaxFallbackLink.html


--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Apr 6, 2010 at 5:20 PM, tubin gen fachh...@gmail.com wrote:

 I am  using  AjaxLink all my application and we add to AjaxRequestTarget
 for
  repainting components , now we want to change it to use AjaxFallback , but
 in ajaxfallback AjaxRequestTarget is null and I get null pointer
 exception.Please tell me if there is any way I can move from  AjaxLink to
 AjaxFallBack link  without breaking ?