Re: Not able to use Celltable for a requirement where I need different widgets under one column.

2012-09-06 Thread Adam T
Hi! You should be able to use custom table rendering of a GWT 2.5 cell table to do what you want in your point (1) (extending AbstractCellTableBuilder and implement the buildStandardRowImpl method to put the relevant cell type into the column that alters based upon your condition in your point

Re: Formatting lists with GWT i18n API

2011-12-15 Thread Adam T
Hi Luiz, If you've not stumbled across this already, just add the format marker "text" in your message definitions and it should work, i.e. @DefaultLocale("pt_BR") public interface AppMessages extends Messages { @DefaultMessage("elementos: {0,list,text}") @AlternateMessage({"one

Re: Shortcomings in Places

2011-06-05 Thread Adam T
Hi, I think you can do this relatively simply, but it's not directly noted in the documentation. (warning, a little plug ahead...) We're looking at how to do this for the 2nd edition of the GWT in Action book, and the approach below is where we are at the moment, though we have not thought throug

Re: Garmin Communicator API

2009-11-22 Thread Adam T
Stephen, You're most likely going to need to use the $wnd or $doc variable within your JSNI code as the Garmin JS is not loaded into the same area as GWT code (http://code.google.com/webtoolkit/doc/1.6/ DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface) i.e. var display = new $wnd.Garmi

Re: Connecting Widgets

2009-11-02 Thread Adam T
The following library might work for you, or give you hints on what you need to do: http://code.google.com/p/gwt-diagrams/ //Adam On 2 Nov, 00:23, sony wrote: > My project is about drawing ER Diagrams, for this I am using GWT. For > now i have most of the frontend working. Now I want to have li

Re: How do I boostrap my Entry Point class with the User service?

2009-10-25 Thread Adam T
This tutorial might help, particularly section 3 that covers using AppEngine User service in GWT : http://code.google.com/webtoolkit/tutorials/1.6/appengine.html //Adam On 24 Okt, 19:43, nacho wrote: > Hi, im developing an aplication in gwt and i have an entry point > class. What i do no reali

Re: GWT and DragListener

2009-10-22 Thread Adam T
Hi Sony, It's not part of GWT out of the box, you need to add it. See the project page, which has instructions and a getting started guide, here: http://code.google.com/p/gwt-dnd/ //Adam On 22 Okt, 15:31, sony wrote: > Hello, > > Is DragListener part of GWT? because when i type in > com.googl

Re: change css rules dynamically

2009-10-18 Thread Adam T
...if you mean actually changing a value in an already defined style sheet, then you need to use JSNI (or rethink your application to change the style applied to elements rather than the style definition). //A On 18 Okt, 15:52, Adam T wrote: > You can do it in at least 4 different ways in

Re: change css rules dynamically

2009-10-18 Thread Adam T
You can do it in at least 4 different ways in GWT. Say you define a label as Label first = new Label("First Label") and add it to the DOM, then you can do one of the following to hide it: a) first.setVisible(false); b) first.getElement().getStyle().setVisibility(Visibility.HIDDEN); c) first.getE

Re: Gadget "more>>" ?

2009-09-29 Thread Adam T
can't you do it using the normal GWT menu and menuitem widgets? //A On 29 Sep, 13:50, Ice13ill wrote: > Does someone knows a library with gadget/widget like the "more>>" item > from the google main menu ? (the menu seen on the top of the page, > with links to other apps) --~--~-~--~~

Re: Problem with Getting Scripts Tag Working

2009-09-25 Thread Adam T
You might want to follow the getting started with Google maps api and GWT guide (http://code.google.com/docreader/#p=gwt-google-apis&s=gwt- google-apis&t=MapsGettingStarted)? //A On 25 Sep, 22:33, thc wrote: > Hi, I am creating a very simple GWT that uses Google Maps API, and > trying to run in

Re: Compilation Error

2009-09-25 Thread Adam T
> u can not use these classes in GWT - client side, > read the doc for the allowed class, > more specifically, this is what you are allowed to use on GWT client side: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html //A --~--~-~--~~~---~--~~ You re

Re: Problem compiling & deploying GWT-Fx

2009-09-19 Thread Adam T
Hi Carlos, You shouldn't see anything in the war file, the code for gwt-fx gets compiled into JavaScript by the GWT compiler - just adding the jar file as you have to a lib directory and is enough (assuming your classpaths are set up ok). I'd suggest checking the log of the compile to make sure

Re: Need help with GWT FX

2009-09-08 Thread Adam T
Hi Rodders, I'm guessing you are using v4 or below of the library, in which case, this is one of the limitations in those versions - effects are applied to the content of the NEffectPanel. So your contents would move but the NEffectPanel would stay. If you're able to download the code from trun

Re: Async socket

2009-07-30 Thread Adam T
The so-called "Comet" technique is perhaps what you are looking for: http://ajaxian.com/archives/comet-a-new-approach-to-ajax-applications //Adam On 31 Juli, 02:03, Blessed Geek wrote: > In Flash, I could create an async socket. > Which is very useful because it allows server pushing data > asy

Re: event when item is visible, and getOffsetHeight isn't 0

2009-07-30 Thread Adam T
try the onLoad() method: /** * This method is called immediately after a widget becomes attached to the * browser's document. */ protected void onLoad() { } //Adam On 30 Juli, 22:10, bradr wrote: > I'm working on a widget and need to do calculations based on it's > height in o

Re: conversion to JavaScriptObject fails with cross site communication

2009-07-28 Thread Adam T
Hi Dale, Could be a couple of things... 1) Your asBasicComputerInfo() method takes a variable "jso" and you try and return a reference to a variable "json" - though maybe that's just a typo in your message? 2) Your JSON response from server doesn't appear to be an array, so ignoring any potenti

Re: Indexed Panel

2009-07-27 Thread Adam T
Hi Rahul, It's not a panel per se, it is an interface that a number of different panels implement. If a panel implements the interface, then you know you can that you can get a widget at a particular index, count the number of widgets on the panel, remove a widget at a particular index and get t

Re: Reading styles directly from the stylesheet?

2009-07-24 Thread Adam T
Hi Graham, there's not a directly way in GWT as yet. As part of a project I'm doing, I've been building up an animation library that is based on tweening between 2 styles that I've been able to kept as open source. You can find the library here: http://code.google.com/p/gwt-fx/ and an example he

Re: Problem while loading stylesheet dynamically

2009-07-23 Thread Adam T
Hi Rick, The last line in your native method should read: $doc.getElementsByTagName("head")[0].appendChild(fileref); As GWT uses $doc to refer to the pages document. See: http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaScriptNativeInterface //Adam On 23 Juli,

Re: Selection of Widgets

2009-07-23 Thread Adam T
                      event.preventDefault(); >                 } >         } > >         class MyMouseMoveHandler  implements MouseMoveHandler { >                 @Override >                 public void onMouseMove(MouseMoveEvent event) { >                         // TODO Auto-

Re: Suggestion: Toggle style name

2009-07-22 Thread Adam T
Célio, GWT is of course open source, so you could easily create an issue in the issue manager (http://code.google.com/p/google-web-toolkit/issues/ list) and submit a patch including your code below on, presumably, the UIObject class. It could then get discussed and perhaps included in the main c

Re: Selection of Widgets

2009-07-22 Thread Adam T
Hi Ewald, Sounds like you want to prevent the default event handling of the browser. You'll need to add some event handlers to your HTML widget and the call the preventDefault() method in them. For example: HTML widget = new HTML(); widget.addMouseDownHandler(ne

Re: JSNI issues

2009-07-21 Thread Adam T
JS scenario, which I trying to port to GWT using JSNI. > > I fail, though, as the very first command > >       vis = new $wnd.pv.Panel().canvas("PVis"); > > fails with the following JavaScript exception > >       $wnd.pv has no properties > > I will see if the o

Re: JSNI issues

2009-07-20 Thread Adam T
2008/08/getting-to-</a> really-know-gwt-part-2.html) that would let you merge GWT and the protovis library in a more natural style, than the approach you're taking just now) Good luck, //Adam On 20 Juli, 17:41, wsaleem <wsal...@gmail.com> wrote: > Adam, I added >  

Re: JSNI issues

2009-07-20 Thread Adam T
Hi, It might be the case that in both cases your GWT code is loaded and executing before the browser has loaded your externally referenced JavaScript file. To remove that possiblity, you can place the tag you have in the HTML into your module's .gwt.xml definition, i.e.

Re: Does GWT 1.7 support Class.getSimpleName()?

2009-07-15 Thread Adam T
GWT supports the following: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html //Adam On 15 Juli, 19:00, Pandaman wrote: > Does GWT 1.7 support Class.getSimpleName()? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Fade animation with IE opacity doesn't work....

2009-07-15 Thread Adam T
Hi Ed, IE is always going to throw you some interesting challenges. The one you've hit here relates to IE only applying filters if an element has "position". You've achieved that by directly setting the element's height; another, perhaps more common way is to set the zoom style property to 1, i

Re: GWT: Edit CSS Attributes

2009-07-07 Thread Adam T
Something like the following should work: Image img = new Image("SomeImage.png"); img.getElement().setPropertyString("left", "100px"); //Adam On 7 Juli, 14:12, stephan17 wrote: > Hi, > > In GWT i have an image and I want to edit a css attribute l

Re: How to know when a Widget is fully loaded....

2009-06-28 Thread Adam T
You can generally hook into when a widget is ready in the DOM by overriding it's onLoad() method. However, if you have Images you need to do more work as whilst the DOM aspect of the Image widget may be ready in DOM it may not have size as the actual image is not downloaded yet - your resizing is

Re: UiBinder in trunk or incubator?

2009-06-05 Thread Adam T
Hi Ricardo - see this: http://groups.google.se/group/Google-Web-Toolkit-Contributors/browse_thread/thread/4539b203c2aba4ad?hl=sv# //Adam On 5 Juni, 15:07, "rocha.po...@gmail.com" wrote: > Hi all. > > I'm trying to use the UiBinder, i've searched this and the contrib > group a bit, I get it that

Re: $doc.selection is undefined in GWT

2009-06-04 Thread Adam T
Hi, Seems there is something strange going on with search - I answered your question and can't see the reply either! The $ before doc is due to GWT loading into an IFrame - GWT ensures that $doc points to the window's document object (you can read more on that in the JSNI documentation from GWT

Re: Work around for Element.setAttribute("style", "value") in IE ?

2009-06-03 Thread Adam T
Try DOM.setStyleAttribute(Element, "backgroundColor", "#ff") (you also need to use camelCase for the style you are changing). //Adam On 3 Juni, 18:15, Ganaga wrote: > Hi, > > Doing a Element.setAttribute("style", "background-color: #ff") > works fine in Firefox but has no effect in IE

Re: $doc.selection is undefined

2009-06-01 Thread Adam T
$doc is GWT's JSNI's variable to access the Javascript document variable - see the documentation: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaScriptFromJava You don't mention which browsers/operating system you're using, but as far as

Re: JSNI: JavaScriptException: (ReferenceError):

2009-05-31 Thread Adam T
Hi Paul, You most likely want to write your JSNI call to the external Javascript function using the $wnd scope, i.e. public static native void initGoogleMaps() /*-{ $wnd.initializeGoogleMaps(); }-*/; //Adam On 30 Maj, 20:10, Paul van Hoven wrote: > I need some javascript in my page that can

Re: Hack my hack: how do I migrate FocusWidget::fireClickListeners to 1.6?

2009-05-22 Thread Adam T
the following might help: http://groups.google.se/group/Google-Web-Toolkit/browse_thread/thread/ff70962396ab8ab6/2b1840cd8f7606ca?hl=sv&lnk=gst#2b1840cd8f7606ca //Adam On 22 Maj, 09:58, Richard Kennard wrote: > Hi guys, > > In GWT 1.5 and earlier, I have been unit testing my click handlers as >

Re: getbytes() is undefined for the type string

2009-05-18 Thread Adam T
Hi Vijay, GWT emulates a subset of Java, so you can get caught out if you're relying on Eclipse autocompletion and compilation - as that will show you all of Java. To see what is implemented, check out the GWT JRE documentation: http://code.google.com/intl/sv-SE/webtoolkit/doc/1.6/RefJreEmulatio

Re: Help With Programmatic Events in 1.6

2009-05-15 Thread Adam T
Hej Alyxandor, I wouldn't get too disheartened by the star markings; anyone can click any value of stars - sometimes the stars can help guide between good/ helpful answers from those that are less, sometimes I've seen things 1- starred for no apparent reason (who really knows why 1 person clicked

Re: Help With Programmatic Events in 1.6

2009-05-14 Thread Adam T
Hi, You would normally use fireNativeEvent in testing code and usually are better off refactoring your UI code to avoid it in user code; however, if you do want to use it, then you need to move completely to the new event system. For example, to programmatically click a Button you could write so

Re: Serialization

2009-05-11 Thread Adam T
>From a GWT perspecive, they're equivalent: http://code.google.com/p/google-web-toolkit/issues/detail?id=21 http://code.google.com/p/google-web-toolkit/issues/detail?id=21&#c19 http://code.google.com/p/google-web-toolkit/issues/detail?id=933&#c2 //Adam On 12 Maj, 06:35, jagadesh wrote: > Why i

Re: Private class VS. enum

2009-05-11 Thread Adam T
I guess it's because of earlier versions, but there are also questions on efficiency of enums in compiled code going on at the moment. For example: * GWT write up on possible future optimisations for enums: http://code.google.com/p/google-web-toolkit/wiki/EnumOptimizations * another write up

Re:

2009-05-07 Thread Adam T
Perhaps you're having a fundamental misunderstanding about the asynchronous world the web lives in - without the callback, how would you propose to know that the JSON data is available to your program? You still need to deal with the fact that your JSON data is going to come across the network fr

Re: horizontal and vertical flow panels

2009-05-06 Thread Adam T
Sudhir - why not post this idea to the GWT contributors forum as well - you might get some detailed answers/comments from there (http:// groups.google.se/group/Google-Web-Toolkit-Contributors). //Adam On 6 Maj, 18:56, Sudhir wrote: > I've made horizontal and vertical flow panels and put them up

Re: Read title of webpage using gwt

2009-05-05 Thread Adam T
Window.getTitle() should get it for you. //Adam On 5 Maj, 19:32, surfi2000 wrote: > Hi, > > Is it possible to get the title of a website that the user is > currently on? > > For example, if in the html code the following is said First title> gwt will give me a variable containing the string "Fi

Re: GWT is it possible?

2009-05-05 Thread Adam T
Hi, I agree with X, if you go an SVG/VML route, but it might be easier if you take another approach - depending on what exactly you mean by "draw". If you restrict yourself to placement / drag'n'drop of images/widgets on the browser and creating connections between them, then the gwt- connectors

Re: Inserting header and footer into DecoratorPanel

2009-05-02 Thread Adam T
e > color of the top part of these vertical borders should be the same as the > header, and the color of the bottom part should be the same as the footer. > How do we create such vertical border so that the top and bottom color are > aligned to the header (the DockPanel.NORTH) and f

Re: Absolute positioning relative to other widgets

2009-05-02 Thread Adam T
; guarantee execution of code only after the widget has been fully > positioned and their currently exist not other DOM modifying events in > the queue? > > Also, in closing, is there more information somewhere on exactly how > widgets are added, positioned, and rendered. I would also b

Re: first shot at 1.6: flextable and clickhandlers

2009-05-01 Thread Adam T
Pre 1.6 you would add a TableListener for this - the JavaDoc for 1.6 tells you this method is deprecated, but to do the same thing you should "add a click handler instead and use HTMLTable.getCellForEvent (ClickEvent) to get the cell information (remember to check for a null return value)" So, so

Re: Drag and Drop in a FlexTable

2009-05-01 Thread Adam T
have you tried the GWT drag'n'drop library? Here's an example using FlexTable which sounds like what you are after: http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#FlexTableRowExample ...and a link to the library: http://code.google.com/p/gwt-dnd/ //Adam On 2

Re: Inserting header and footer into DecoratorPanel

2009-05-01 Thread Adam T
Hi, I would say the best approach is to add a DockPanel as the single content of the DecoratorPanel and then the header is DockPanel.NORTH, the footer DockPanel.SOUTH and you content goes in DockPanel.CENTER (the DecoratorPanel is a 9 celled table and topCenterInner is part of the structure to gi

Re: Absolute positioning relative to other widgets

2009-05-01 Thread Adam T
sometimes it's worth wrapping any repositioning up in a DeferredCommand to give the browser a chance, i.e. take you code that does something like this: int x = X.getAbsoluteTop; int h = X.getOffsetHeight(); W.setWidgetPostition(x,y); W.setWidth(h/2+"px"); and make it DeferredCommand.addCommand(

Re: Adding the same widget more than once

2009-05-01 Thread Adam T
...or you could use CSS and assign the css for the hyperlink to have a single left (or right) or no border, e.g. Hyperlink about = new Hyperlink("About us", "about"); Hyperlink register = new Hyperlink("Register", "register"); about.setStylePrimaryName("hyperlink-nosep"); register.setStylePrimary

Re: FocusHandler not called when focus is lost.

2009-05-01 Thread Adam T
perhaps BlurEvent and BlurHandler are what you're looking for? //Adam On 1 Maj, 16:02, H Hale wrote: > The FocusHandler method onFocus only gets called when the widget gets > focus. What about lost focus events? > Shouldn't there be a method like FocusListener#onLostFocus(Widget > sender) ? --~

Re: Lightbox image viewer 2.03a

2009-04-28 Thread Adam T
I would guess that "lightbox.js" executes once loaded and that is happening prior to your GWT code executing to add the hyperlink to the DOM (thus it gets missed). The lightbox.js code (http://www.dynamicdrive.com/dynamicindex4/ lightbox2/js/lightbox.js) says this "initialize() - a constructor ru

Re: History between pages

2009-04-27 Thread Adam T
Hej Arun, I believe everything you need is in my first post. //Adam On 28 Apr, 06:27, Arun wrote: > Hi Adam, > > I would looking for similar solution, Could you please show here how > to do it? > > It would be a great help. > > Arun. > > On Apr 26, 11:19 am,

Re: JsArray methods deficiency

2009-04-25 Thread Adam T
Best thing to do is either: a) raise a defect and then this gets tracked, and if indeed the world is suffering due to this, then they can star it to get higher visibility. b) submit a patch through the contributor list (afterall, GWT is open source) - are you 100% sure this is cross-browser compa

Re: History between pages

2009-04-25 Thread Adam T
have you implemented the onHistoryChanged(String token) method? In have to rebuild the state yourself based on the token as it's not done automatically. I think you may also need to slightly refactor the code to get history working as you want. I would most likely have the following: In your c

Re: How to scroll screen

2009-04-25 Thread Adam T
2 AbsolutePanels with your content in, and then change their x and y positioning over time on the RootPanel would be one basic approach. //Adam On 25 Apr, 10:51, hezjing wrote: > Hi > I was trying  http://taskengine.appspot.com/ > > When clicked on the + to add a

Re: Request on displaying images at client-side

2009-04-23 Thread Adam T
if the images are definitely called 1.gif, 2.gif, 3.gif. why not just send the next requested number as part of the RPC call and keep an pointer of where you are in your client side? //Adam On 23 Apr, 19:48, raghu prashanth k b wrote: > hi, >    I have a folder which has few collection of i

Re: Debugger() was called!

2009-04-23 Thread Adam T
Not really an answer to your question but just to let you know you're not alone, I also get this (on Mac) every time with GWT 1.6 - though I've been happily ignoring it and seen no side effects. Would be interesting to know why though. //Adam On 24 Apr, 00:21, davidroe wrote: > I use to see th

Re: import java.net cannot be resolved error

2009-04-23 Thread Adam T
If this is client side code, you can't use java.net as the code gets compiled to JavaScript - I'd suggest you read the documentation for GWT to get a feel of what you can and can't do, in particular what is included in the JRE Emulation for GWT: http://code.google.com/intl/sv-SE/webtoolkit/doc/1.6

Re: Localization - is GWT localization worth it? Can we have juse a single permutation please?

2009-04-23 Thread Adam T
Dobes, You should thing of the trade-offs - sometimes a bit of a pain for the developer translates to increase user experience. For example, if it doubles your compile time, but makes your application appear and start running in the browser twice as fast, which is most important? (those figures

Re: List of Usable Java Packages?

2009-04-21 Thread Adam T
GWT only implements a subset of Java: http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/RefJreEmulation You should also think of it as client side web code (after all it gets compiled to JavaScript) as such you wouldn't normally be able to connect to a database directly - you'd go through

Re: Application doesnt work in web mode, but does in hosted mode.

2009-04-10 Thread Adam T
could it be a "same origin policy" issue? It used to be the case that hosted mode was more relaxed on this restriction and this could catch you out when you moved to web mode where browsers strictly enforce the same origin policy. Simply put, the call to your PHP file must go to the same origin

Re: newbie question - link event handling

2009-04-10 Thread Adam T
Hi Joe, Maybe the History class can help you here. It allows you to pick a "token" off the url and change you applications status appropriately - a token is essentially everything after the hash (#) In the case where a user navigates to a url such as http://gwt.google.com/samples/Mail/Mail.html

Re: I just realized that dependency injection is possible with GWT

2009-04-10 Thread Adam T
Vitali, you'd just create your own property with two values: Generically: 1. Define the properties: 2. Define a property provider; for example as simple one as folows: 3. Stick the meta tag use for the property provider in your html file's head section Note: For

Re: Gwt

2009-04-01 Thread Adam T
LoadListener (or rather you should use LoadHandler from GWT 1.6 onwards) allows you to handle an onLoad event from widgets that implement the HasLoadHandlers interface. For example, if you have an Image widget, then you can apply a LoadHandler to perform some functionality once the image has load

Re: Runasync feature of GWT

2009-03-31 Thread Adam T
eam.defaultWriteFields(Unknown Source) > >         at java.io.ObjectOutputStream.writeSerialData(Unknown Source) > >         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) > >         at java.io.ObjectOutputStream.writeObject0(Unknown Source) > >        

Re: Runasync feature of GWT

2009-03-30 Thread Adam T
Hi Ghostcoder, You need to grab the trunk and compile it to use the RunAsync feature. This is a useful guide: http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting I'm using it quite heavily in an application I'm building and whilst very useful it can be a little frustrating when your

Re: Window.Location.replace() doesn't work in Safari or Chrome or Opera

2009-03-30 Thread Adam T
ok, now I see the issue.but, wouldn't using window.location.replace also "lock" the user into the site in the same way - when the user goes back to the first page the browser would then fire them forwards again to the location.replace url? Maybe the key is to not have the #Home token and trea

Re: Wrapper for Google AJAX Language api

2009-03-29 Thread Adam T
You need to access injected scripts through the $wnd variable (http:// code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web- toolkit-doc-1-5&t=DevGuideJavaScriptFromJava) - maybe $wnd.google.language.translate(text, from, to, function(result) would work for you. //Adam On 29 Mar,

Re: Window.Location.replace() doesn't work in Safari or Chrome or Opera

2009-03-29 Thread Adam T
Well, I'm not really sure what your doing, so it may not help - I was just guessing if you were trying to put #Home at the end of a url you might be trying to plug into GWT's History system. On this page http://gwtfx.adamtacy.com/EffectsExample.html I do that to manage tabs whose content is sucke

Re: Window.Location.replace() doesn't work in Safari or Chrome or Opera

2009-03-28 Thread Adam T
Ian, maybe it's a Windows thing as it works fine on a my Mac with Safari and Opera (and Firefox). I was going to suggest trying JSNI instead, but looking at Window.Location.replace it is just a simple call to $wnd.location.replace(newURL) with no deferred binding to make a difference between Fire

Re: file upload like orkut

2009-03-16 Thread Adam T
File upload is done via either: a) The FileUpload widget - if your happy for the user to select one file at a time, or b) Via a Flash Movie that allows multiple file selects. Which ever option you choose you would then build your UI on-top since you choose when to post the contents of FileUpload

Re: State of the union on oophm ?

2009-03-07 Thread Adam T
It's not production ready yet, so you need to check out the contributor's group for information, For example: http://groups.google.se/group/Google-Web-Toolkit-Contributors/browse_thread/thread/25e55e844d35747e/1e0143674eafdb16?hl=sv#1e0143674eafdb16 //Adam On 7 Mar, 22:37, Jean wrote: > Hi, >

Re: IE6.0 crashes with GWT 1.5.3

2009-02-15 Thread Adam T
Not sure why this would be a GWT issue since it is the Java hotspot machine that is having the error and once you're in web mode you're using JavaScript so, unless I'm mistaken, no HotSpot use - are yo running some other Java (applet?) on your site? Still, if you try doing a web search you can di

Re: can gwt do flying butterfly?

2009-02-09 Thread Adam T
yes it can. You should check out RootPanel.get().add(widget, x, y) method to position several Composite widgets on your page, and use a Timer to schedule(delay) the moving of those composites in a Math.random manner using RootPanel.get().setWidgetPosition(widget, x, y) to reposition. You can use

Re: How to use the http post in GWT

2009-02-09 Thread Adam T
shgwh, I'd just use a normal servlet rather that the GWT RPC one for file upload. Search the web for file upload servlet and you'll get plenty of examples, on the client side you use the fileupload component in a form and post the data to yout servlet (for example the last post here: http://grou

Re: Image Rotation in GWT

2009-02-09 Thread Adam T
Always ask yourself, How would you do it in JavaScript? Two immediate options spring to my mind: a) do it on the server using an image manipulation library, or b) use Canvas html object if you do some more research you'll find the pros and cons of each approach, and maybe more options, e.g. htt

Re: Drag and drop problematic with firefox & ie

2009-02-09 Thread Adam T
u don't need to reimplement the wheel. //Adam On 9 Feb, 07:08, Amir Michail wrote: > On Sun, Feb 8, 2009 at 10:02 PM, Adam T wrote: > > > just try using the gwt drag n drop library which has solved all these > > "problems":http://code.google.com/p/gwt-dnd/ > >

Re: Drag and drop problematic with firefox & ie

2009-02-08 Thread Adam T
just try using the gwt drag n drop library which has solved all these "problems": http://code.google.com/p/gwt-dnd/ //Adam On 8 Feb, 23:26, Amir Michail wrote: > On Sun, Feb 8, 2009 at 2:18 PM, Dan Ox wrote: > > > I think that rather than trying to change a browser to fit your > > implementati

Re: Javascript in HTML blocks

2009-02-04 Thread Adam T
For loading from a Url try the following (being aware of the security issues): /** * Adds the necessary DOM script element. * * @param uniqueId A unique id for the DOM element. * @param url Location of "script". */ public native void addScript(String uniqueId, String url) /*-{

Re: What's the fastest way on doing string concatenation in GWT?

2009-01-27 Thread Adam T
; StringBuffer/Builder and a String concatenation is that the usual String "+" > performs 2 to 4 times faster in IE6 and FF3 than StringBuffer/Builder in my > simple case. So I will stick to the simple " " + some String + " ". > > Thanks anyway, > >

Re: What's the fastest way on doing string concatenation in GWT?

2009-01-26 Thread Adam T
Consider using StringBuilder: http://code.google.com/p/google-web-toolkit/issues/detail?id=945&q=string%20concat //Adam On 27 Jan, 06:34, Fred Janon wrote: > Hi, > > I have some code like this: > > String name = " " + someString + " "; > > Is there another faster way of doing that in GWT? Stri

Re: DecoratorPanel color

2009-01-23 Thread Adam T
You could try the GWT theme generator (via http://www.ongwt.com/post/2008/10/14/GWT-Theme-Generator ) sounds like it could help you. //Adam On 23 Jan, 12:46, Mike wrote: > Hi all, > > Is it correct that there is no easy way to change the color of a > DecoratorPanel's borders? (Light blue is ni

Re: Browser Issues- Please help me

2009-01-21 Thread Adam T
Either set the size of your panels programmatically or through CSS - browsers can/will display FlowPanels differently which I believe is what you are seeing; or user a Vertical Panel for your check boxes/ label combinations. //Adam On 21 Jan, 12:25, venkat raman wrote: > Hi All, > > I have creat

Re: No GwtCompiler option to turn off hosted mode support

2009-01-20 Thread Adam T
Ah you mean in the bootstrap file (the single nocache.js file)? I believe you could go through that nocache.js file and delete the onHostedMode() function and the couple of calls to it without causing an issue if you're only going to use web mode. However, if you compile using the flag -style OB

Re: No GwtCompiler option to turn off hosted mode support

2009-01-20 Thread Adam T
Hej Jörn, What "JavaScript code that is hosted mode specific" are you refering to? You should only get the minimal code necessary for each web browser to run your application as the standard. //Adam On 20 Jan, 14:57, 1jkoch <1jk...@gmx.de> wrote: > Hi, > > my GWT app only runs in web mode when

Re: :Drawing Lines using GWT

2009-01-19 Thread Adam T
You could try this library: http://code.google.com/p/gwt-diagrams/ //Adam On 19 Jan, 12:52, Sri wrote: > Hi , > > I am developing graphic oriented application using GWT.  Can we draw > lines ie straight lines and as well as curvy lines ? In my application > I need to connect the vertical boxes

Re: link Button to change locale

2009-01-14 Thread Adam T
Assuming your using the i18n aspects of GWT, what about an Image with a ClickListener for the button and the each button calls the web page with appropriate local set? For example: Image img = new Image("sv.png"); img.addClickListener(){ public void onClick(){ changeLocale("sv"); } }

Re: Changing the css file at runtime

2009-01-14 Thread Adam T
I would say you need to use JSNI - do a search for how to change CSS file using JavaScript and then implement something similar wrapped in a JSNI method. You can then call that method to change the style sheet, either programmatically by just calling it, or if you want to harness the bootstrappin

Re: GWT File prase

2009-01-13 Thread Adam T
you can't access local filesystem with JavaScript, therefore you can't do it with GWT. You could try a signed Java Applet - search this forum for when this has been asked before. //Adam On 13 Jan, 02:50, Mark wrote: > I want to make an file tree using gwt to prase the local dir , who can > hel

Re: Adding and Image to a Panel will not working for firefox and chrome

2009-01-13 Thread Adam T
you need to set the size of the AbsolutePanel. //Adam On 13 Jan, 02:48, "tr.x" wrote: > Hello guys, > > The following code does not seem to work on FF and Chrome, however > works without any problems in IE. > >         public void onModuleLoad() >         { >                 Image >            

Re: Asynchronous calls to get HTTP files

2009-01-10 Thread Adam T
It's just working asynchronously. Step 1 gets printed, then the call to the server is made asynchronously, so the code moves directly to the next step where Step 2 is printed out. You can't block/sequence execution of server calls in the way you're thinking in JavaScript (and therefore not in GW

Re: Google Maps 1.0 Library access to native underlying GMap2 object ...

2009-01-10 Thread Adam T
or if there's a method as Eric mentions, use that :) //A On 11 Jan, 00:48, Adam T wrote: > .possibly through a JSNI method - pass the WidgetMap object in as > a parameter and then return the field.  I seem to recall doing > something similar with something else, but can'

Re: Google Maps 1.0 Library access to native underlying GMap2 object ...

2009-01-10 Thread Adam T
.possibly through a JSNI method - pass the WidgetMap object in as a parameter and then return the field. I seem to recall doing something similar with something else, but can't find my code, i.e. something like the following might work: public native JavaScriptObject getGMap2(WidgetMap map)/

Re: how can we append Text to a TextArea widget

2009-01-07 Thread Adam T
perhaps use textArea.setText(textArea.getText()+newText)? On 7 Jan, 19:46, "Sanjith Chungath" wrote: > Hi, >      I want to write an async method to retrieve some String from the > server. onSuccess I want to append the reruned string to a TextArea. is it > possible. i can see only setText() met

Re: 1.6 : New event system

2009-01-05 Thread Adam T
Step3331, You should just download the 1.6 code from svn and look what is available to calm your nerves down. //Adam On 3 Jan, 19:32, "step3...@yahoo.fr" wrote: > I heard that the listener is deprecated in 1.6 (and removed in 2.0) > and will be replaced by handler. > > So how to put event on a

Re: ImageBundle question

2008-12-19 Thread Adam T
Maybe your code has some issues - how are you trying to display the different images? On 19 Dec, 07:14, alided wrote: > I'm trying to use ImageBundle, but it doesn't work correctly. I put > different size images into the bundle and when i try to use image it > is always displays biggest image in

Re: What gwt method and/or event indicates that the object has been rendered?

2008-12-10 Thread Adam T
Try overloading the onAttach() method of the widget/panel in question which are called as the widget is attached to the DOM, it might be wise to wrap your code that calls the getOffsetWidth() method up in a DeferredCommand. If you're widget is an Image, try adding a LoadListener and wrap the getO

  1   2   >