Hi,

I see your code, but I don't see any code in gwt-maps being called (at
least, not directly) and I am not sure what exception you are
referring to.

On Tue, Jun 16, 2009 at 4:07 PM, everlongh<[email protected]> wrote:
>
> I noticed a dependancy between the new gwt-maps and gwt-1.5.3.
>
> I am having some issues with my maps application using the new
> jars...original code works fine with gwt-maps-1.0.2 and gwt-1.5.3...
>
> Here one exception I get with no code changes:
>
>
>
> link.addClickHandler(new ClickHandler() {
>       �...@override
>        public void onClick(ClickEvent event) {
>                // remoteService.remoteMethod("Hi Server", callback);
>        final Widget sender = (Widget) event.getSource();
>        if (sender instanceof Hyperlink) {
>
>                final Hyperlink link = ((Hyperlink) sender);
>
>                System.out.println("Polling link ="
>                                + link.getTargetHistoryToken());
>
>                link.setText("Polling...");
>
>                final String key = link.getTargetHistoryToken();
>                // int index = html.indexOf("?");
>                // final String key = html.substring(index);
>
>                // link.setHTML("Polling site...");
>
>                Timer t = new Timer() {
>                        public void run() {
>
>                                // Window.alert("Site "+key+" ATG's could not 
> be reached.");
>                                // Window.alert("Site ATG's could not be 
> reached.");
>                                TankInventoryVO[] tivos = 
> inventoryVOMap.get(key);
>
>                                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);
>                                        // 
> tivo.setInventoryDateTime("2009-03-04 12:15:00");
>
>                                        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));
>                                }
>
>                                link.setHTML("Poll Now");
>
>                                }
>                        };
>                        t.schedule(5000);
>
>                }
>
>
>        }
> });
>
>
>
> >
>



-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to