I think the problem is that you are clobbering a tree in the DOM using setInnerHTML() that you created with GWT widgets. Can you find a way to comment out the setInnerHTML() or attach to the div some other way?
On Tue, Jun 23, 2009 at 5:34 PM, everlongh <[email protected]> wrote: > > Just to be comletely clear the div id being updated is html in a > com.google.gwt.widgetideas.client.FastTree widget inside a map marker > infowindow > > below is the code that adds the widget > > private void addInfoWindowWidget(final Marker marker, final Widget > widget) { > > marker.addMarkerClickHandler(new MarkerClickHandler() { > public void onClick(MarkerClickEvent event) { > InfoWindow info = map.getInfoWindow(); > InfoWindowContent content = new > InfoWindowContent(widget); > info.open(marker, content); > } > }); > } > > The FastTree that has html with the divID updated in the loop below, > each tree node html gets update with a call > to RootPanel.get(divId).getElement().setInnerHTML > (getTankInventoryForMapTree(tivo)); > > The whole loop is below: > > for (int x = 0; x < tivos.length; x++) > { > TankInventoryVO tivo = tivos > [x]; > > DateTimeFormat formatter; > formatter = DateTimeFormat > .getFormat > ("yyyy.MM.ddHH:mm:ss"); > Date date = new Date > (System.currentTimeMillis()); > String dt = formatter.format > (date); > tivo.setInventoryDateTime > (dt); > double volume = > tivo.getInventoryVolume(); > volume = volume - > Random.nextInt(100); > tivo.setInventoryVolume > (Float.parseFloat(Double > .toString > (volume))); > tivo.setVolumeUom("gal"); > String divId = key + "- > TankInventory-" + x; > System.out.println("Updating > panel for " > + divId); > RootPanel.get(divId).getElement > ().setInnerHTML( > > getTankInventoryForMapTree(tivo)); > } > > > > > On Jun 22, 9:01 pm, everlongh <[email protected]> wrote: > > here it is below, it occurs on the line > > > > RootPanel.get(divId).getElement().setInnerHTML > > (getTankInventoryForMapTree(tivo)); > > > > DEBUGGED BACK TO... RootPanel.get(divId) > > > > In RootPanel.java > > > > // Create the panel and put it in the map. > > if (elem == null) { > > // 'null' means use document's body element. > > rp = new DefaultRootPanel(); > > } else { > > // Otherwise, wrap the existing element. > > rp = new RootPanel(elem); > > } > > > > rootPanels.put(id, rp); > > detachOnWindowClose(rp); > > return rp; > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
