gwt

SmartGWT - Update ListGridRecord dynamically

I am using SmartGWT and I have a ListGrid populated with an array of ListGridRecords using the setData() call. I am trying to update a progress property of a single record (on a timer for testing) and have it update in the browser. I have tried various combinations of draw(), redraw(), markForRedraw() etc. to no avail. I also tried ...

Gwt How to call servlet/rpc through https from page originated from http

Hi , is there any way to call servlet or make a gwt-rpc call from gwt client and get back the response. Or to call RPC over https only for login purpose. Please suggest any method or workaround to implement the above task ...

Integrate openid4java to GWT Project

Hi, I created an GWT project in eclipse. Now I tried to implement openId with using the openid4java library. I imported the .jar files via properties-->java build path: openid4java-0.9.5.jar lib/*.jar In addition I copied the .jar files into the war/WEB-INF/lib directory. The problem at hand comes up when I call the authenticate...

GWT : Internet Explorer transparency issue

This post concerns only IE. The last line of the following code is causing the issue. int width = 200; int height = 200; int overHeight = 40; AbsolutePanel absPanel = new AbsolutePanel(); absPanel.setSize(width + "px", height + "px"); SimplePanel underPanel = new SimplePanel(); underPanel.setWidth(wid...

How to translate,use JSON in GWT?

I'm new in gwt. and need to know how to use JSON in gwt so i try this simple data loader but i'm still confuse. I create a project named 'tesdb3' in eclipse. I create the PHP side to access the database, and made the output as JSON.. I create the userdata.php in folder war. then I compile tesdb3 project. Folder tesdb3 and the userdata.ph...

Best way for launching html/jsp to communicate with GWT module

I asked this at the GWT forum but I'm impatient for the answer and I seem to get rather good responses here. A html or jsp file is used to launch the xxx.nocache.js, which then decides which browser "permutation" to use. <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> <title>xxx</title> <script type="text/j...

Download html page source code using GWT

Hi all, I am trying to use GWT to download the source code of web pages, but i do not know where to start, can anyone gives me some key word that i can search on google, or gives me some links from tutorials. Thanks!! ...

Gears or HTML5 Location API on Android 1.5

Hi there, I am trying to use gwt-mobile-webkit, particularly its location api. It works well with iPhone (both device and simulator) and Firefox and on G1 with 1.6 Android, however, it does not work on G2 with Android 1.5 on it. In result I am getting onFailure callback with Permission Denied error. So it seems, that there is some geol...

GWT styles not applying

I'm creating a GWT application that uses UiBinder, and I've come across a bizarre problem where styles aren't applying to my elements--until I refresh the browser, and then the styles briefly get applied, in that fraction of a second before the page refreshes. In other words: Open page; none of my defined styles are used. Hit Refresh ...

GWT on iPhone 4.0 with 3G network

I have just encountered very strange problem - my GWT app hosted on Google App Engine does not want to work on iPhone over 3G, however it works fine over Wi-Fi. For testing I created empty GWT module with only Window.alert in the onModuleLoad. If I switch on Wi-Fi, the alert is shown, with 3G - just blank page although with correct titl...

GWT and MVC type calls

I have a GWT app that when launched it takes you to a page with just a menu. So as a shortcut type thing I would like the users to be able to go straight to the page they want. So if the default start page is x, the should be able to say x/add and it will take them to the add page. How would I get that in gwt? Do I need a bunch of di...

Custom Scrollbar in GWT

I would like to put in my own graphics instead of the OS dependent boring scrollbars for the website I'm building. Is there a way to do this in GWT? ...

GWT Scrollable Table resizing by it self when sorting

I have a table which I want to keep dynamic header sizes, but as soon as I try to sort it by either of the sorting columns, it resizes by it self. Note: I don't want to make the columns fixed, I want to keep them dynamic. but without resizing when sorted. thank you for your help. Note: I only see this in Google Chrome ...

ArrayList throwing exception on retrieval from google datastore (with gwt, java)

I'm using Google Web Toolkit with java and google datastore as database. The entity class has arraylist and on trying to retrieve the data from data base I'm getting the exception: Type 'org.datanucleus.sco.backed.ArrayList' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object...

gwt-hosted mode when I am using jersey services

I am doing my project in GXT and using jersey services. I am trying to run that application in hosted mode.I have used -noserver option here. But still when I am trying to run the application in hosted mode it's giving me 'Error Response: 0' from the server side. According to me it's not able to find the server side in the tomcat. What m...

What is the best approach towards styling GWT applications?

General approach in GWT is to use Panels and then apply custom CSS themes to get a customized look. While I can achieve a certain extent of personalization of my GWT app through CSS tinkering, I was wondering how others generally approach styling. Some of the suggestions I came across the web were to manage layout with plain HTML, throu...

How do I wrap a very long line of text in a GWT label?

This is an extract of my code at the moment: VerticalPanel mainPanel = new VerticalPanel(); RootPanel.get("messages").add(mainPanel); HorizontalPanel tempPanel = new HorizontalPanel(); tempPanel.setSize("100px", "200px"); Label content = new Label("AAAveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryverylong...

Text box loses focus when DIV is hovered

Hello. I have a problem: When I enter a text into suggestion text box, popup panel appears. But when user places mouse over this popup panel with suggestions - text box loses focus. What should I do to prevent losing focus ? Example which have the same behaviour: http://demo.raibledesigns.com/gwt-autocomplete/ Thanks for any help. U...

GWT - Retrieve size of a widget that is not displayed

I need to set the size of an absolutePanel regarding to its child size, but the getOffset* methods return 0 because (i think) the child has not been displayed yet. A Quick example: AbsolutePanel aPanel = new AbsolutePanel(); HTML text = new HTML(/*variable lenght text*/); int xPosition = 20; // actually variable aPanel.add(text, xPosit...

How do I determine whether I am going "forward" or "backward" through my History in GWT?

I am looking at History and History JavaDocs in GWT and I notice that there is no way to tell whether the forward or backward button was pressed (either pragmatically or by the user). The "button press" is handled by your registered addValueChangeHandler, but the only thing passed to the handler is a string on your history stack. There ...