Oh my goodness, I missed to add the instantiation of the AjaxFallbackLink to
my example.

The error still exists. I post you the right code-snipet. Sorry for the
inconvience ...


public class MenuePanel extends Panel {

        private ListView menueListView = null;

        public MenuePanel(final String id) {
                super(id);

                this.menueListView = new ListView("menue", getMenueEntries()) {

                        // this method is called for each entry in the list     
                
                        public void populateItem(ListItem item) {
                                final MenueEntry menueEntry = 
(MenueEntry)item.getModelObject();

                                AjaxFallbackLink ajaxFallbackLink = new 
AjaxFallbackLink("menueEntry") {
                                        public void onClick(AjaxRequestTarget 
target) {
                                                // target is null when 
refreshing the page ...
                                                //although JavaScript is on
in Internet Explorer 6.0
                                        }
                                };

                                item.add(ajaxFallbackLink);
                        }
                };
                
                this.menueListView.setOutputMarkupId(true);
                add(this.menueListView);
        }
        
        ...
}


















pointbreak+wicketstuff wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxRequestTarget-is-null-in-Internet-Explorer-6-tp19597723p19623968.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]

Reply via email to