Override onClick for your link. Your code defines an onClick in the
panel, it doesn't override your Link's onclick.

On Mon, 22 Sep 2008 03:16:47 -0700 (PDT), "mahone9" <[EMAIL PROTECTED]>
said:
> 
> I still have that problem.... and why is sb. responding to another
> thread...
> 
> 
> 
> mahone9 wrote:
> > 
> > Hi all 
> > 
> > I´m struggeling with the AjaxFallbackLink the target object is null, if it
> > runs to the onClick() method. 
> > In Firefox and Opera it works fine!!! 
> > 
> > class MyPanel extends Panel { 
> >     private AjaxFallbackLink link; 
> >     
> >     public MyPanel() { 
> >        this.link = AjaxFallbackLink("link"); 
> >        add(link); 
> >     } 
> > 
> >     public void onClick(AjaxRequestTarget target) { 
> >         if (target == null) { 
> >           System.out.println("my target is: " + target);   //target is
> > null 
> >         } else { 
> >           System.out.println("my target is: " + target);           
> >           target.appendJavascript("alert('is working');");           
> >         } 
> >     } 
> > ... 
> > } 
> > 
> > class MyPage extends WebPage { 
> >     private MyPanel myPanel; 
> > 
> >     public MyPage() { 
> >          this.myPanel = new MyPanel("myPanel"); 
> >          add(myPanel); 
> >     } 
> >     
> > } 
> > 
> > If I add the AjaxFallbackLink to a WebPage instead to a Panel it works
> > pretty fine. 
> > 
> > What I do is: 
> > - call the page and click the link     
> > - refresh the page through F5 
> > - once again click the link 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
> > gegen Massenmails. 
> > http://mail.yahoo.com
> > 
> I still have that problem.... and why is sb. responding to another
> thread... 
> -- 
> View this message in context:
> http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19605102.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to