Have you checked the "google development mode" tab (assuming you are using eclipse) for uncaught exceptions?
Im thinking specifically the "A widget that has an existing parent widget may not be added to the detach list" which will just stop parts of your screen from loading without any other obvious/external warning/error I seem to be getting that error all over the place when I try to use the "RootPanel.get().add()" functionality, with no obviously good reason at the moment. Plus I still cant work out what this really actually means! I dont mean to hijack your thread, but if anyone can explain this error in "laymans" terms Id appreciate it! Good Luck, J 2010/2/24 Vik <[email protected]> > Hie > > I created a gwt component which is a button (click on which inovkes a > popup). > > If i embed it just once then it comes fine on the html page. However, when > i embed it for the second time i just see one. > > here is the module load code: > @Override > public void onModuleLoad() { > > final Button joinusButton = new Button("Join Us"); > joinusButton.addClickHandler(new ClickHandler() { > public void onClick(ClickEvent event) { > // Instantiate the popup and show it. > JoinUsPopup joinusPopup = new JoinUsPopup(); > joinusPopup.showRelativeTo(joinusButton); > joinusPopup.show(); > } > }); > > > RootPanel.get("joinus").add(joinusButton); > if(RootPanel.get("joinusbottom") != null){ > final Button joinusBottomButton = new Button("Join Us"); > joinusBottomButton.addClickHandler(new ClickHandler() { > public void onClick(ClickEvent event) { > // Instantiate the popup and show it. > JoinUsPopup joinusBottomPopup = new JoinUsPopup(); > joinusBottomPopup.showRelativeTo(joinusBottomButton); > joinusBottomPopup.show(); > } > }); > RootPanel.get("joinusbottom").add(joinusBottomButton); > } > > > > and mypage.html has following divs > > <div id="joinus"></div> > > <div id="joinusbottom"> </div> > > Any idea why i see just one ? > > Thankx and Regards > > Vik > Founder > www.sakshum.com > www.sakshum.blogspot.com > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
