gwt

A more efficient approach to attach components to panel and render them on screen

His, I am using UiBinder whenever possible to improve application performance when possible. However, as far as I understand, UiBinder is at its best when corresponding template contains losts of static information. In my case, mobile app, most of the screen areas contain dynamic information. For instance, there is a panel with butto...

GWT Button(Image + Text)

Hi, I need to make a round button with some text on it (Centered). For the round button, I'm using an Image and onClick methods, but my problems come when i'm trying to overlap some text (Centered) over the image. "Like this " The text have to be customizable, so I can't just make the image previously Any hints of how to do that? Th...

GWT: Add an event handler on all div elements

How to add an event handler on all div elements with GWT? I tried the following code but the window alerts are not fired up (But "etvoila" class is set up): private NodeList<Element> pageDIVElements; public void initDiv() { MyDIVEventHandler handler = new MyDIVEventHandler(); pageDIVElements = Document.get().getElementsByTag...

call click() function as programmatically in GWT

i want to call click event function for Button in GWT... I tried this code but it is not working.. Button btnAddField = new Button(); btnAddField.setText("Add"); btnAddField.setWidth("225px"); btnAddField.addClickHandler(new btnAddFieldButtonClickListener()); private class btnAddFieldButtonClickListener implements ClickHandler{ ...

String.indexOf(String s) in GWT fails when deployed to tomcat server

I seem to be having having an issue with String.indexOf(String s)/String.lastIndexOf(String s) in my GWT2 app when running it on a tomcat server. The following code is in a Presenter (client side). It works perfectly when running via the GWT Eclipse plugin, but returns "" when the app is deployed to a tomcat6 server. int start = messa...

GWT adding Event Handler overrides the native one ?

Hi, lets say i have the following html element on my host page: <input type="text" onfocus="this.value = ''" id="textField"/> In gwt i wrap this into an TextBox Widget like this: final TextBox myTextBox = TextBox.wrap(DOM.getElementById("textField")); If i now want to add a focus handler what will happen? myTextBox.addFocusHandle...

Checkboxes to select an entry in a grid (GWT)

Hello. Basically, I want to create a table like this: I created a grid, and added the text values, and the checkboxes. Exactly like in your email box, where you select some mails, and delete them or mark spam. This is what I have done till now: Grid grid = new Grid(4, 3); for (int i = 0; i < jsonArray.size(); i++) { ...

How to log out a user from a GWT application ?

I develop an GWT applicationwith HTTP basic login type. I have a "Logout" button that calls a server side method logout() public void logout() { getThreadLocalRequest().getSession().invalidate(); } after the call it executes Cookies.removeCookie("JSESSIONID"); Window.Location.reload(); in order to reload the page and get a br...

use uibinder css in java rather than xml

in my ui.xml, i have style like below <ui:style src="../teststyle.css" /> if i want to programmatically use the style inside java file rather than ui.xml, in my widget how to call .setStyleName(..) as the css is obfuscated ...

GWT, AppEngine and pretty url (human url)

Can anybody show a working example of how to get pretty urls on a GWT project over AppEngine. I know that you will suggest to look at UrlRewriteFilter. I have been burning it for 3 days and get no succedd. Please, could help? ...

What does compiling permutation mean in GWT?

When a Web App Project is compiled, 6 permutations are compiled. What are those permutations, and what do they mean? ...

How to develop a modular enterprise application using just GWT

Hi I want to design and develop a big enterprise application using just GWT in client side. I want to break this enterprise application into parts and I call each of them a module (or bundle or portlet or whatever!). These modules might have relation with each other and might call some services that exists in other modules (in both c...

Making POST requests with parameters in GWT

I am trying to do a POST request with a set of parameters to a given URL. The problem I am having is that the POST request is made, but no parameters are passed. RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); StringBuilder sb = new StringBuilder(); for ( String k: parmsRequest.keySet() ) { ...

Set selected text in GWT (in order to make copy paste easier)

In GWT apparently you have to use some Flash-component to alter the clipboard. Since I don't want to use Flash, but I do want to copy and paste text from my application, I would like to set text selected if someone clicks on it. The only thing the user has to do is to type Ctrl-C/Ctrl-V to copy and paste (in Windows). Is this possible? H...

NS_ERROR_NOT_AVAILABLE in GWT DevMode when not on network

My GWT app works fine in DevMode if I am connected to the network. If I disconnect (turn Airport off), my app stops working. The problem occurs when the app makes an XHR request. Googling around suggests that this is related to a Same-Origin Policy violation; but I can't understand why that would occur when I'm disconnected, and not whe...

GWT: any way to track where events are being consumed or swallowed?

Is there any way to find where an event is being swallowed? I'm developing a new Panel in an existing app. The main Panel is a VerticalPanel with an existing Panel/Widget on the bottom and my new Panel on top. I have a few 'normal' events in my new Panel, such as clicking on buttons, mouse wheel handling for scrolling, which work fine wh...

This panel keeps getting position: absolute applied. How can I stop it?

I'm using an AbsolutePanel to do some drag-and-drop kind of stuff. I add child Widgets to the AbsolutePanel, and then use absolutePanel.setWidgetPosition to set their position. But I keep getting this error: java.lang.IllegalStateException: com.google.gwt.user.client.ui.AbsolutePanel is missing CSS 'position:{relative,absolute,fixe...

gwt flowpanel automatically show the bottm of the panel not the top

hi, I have couple FlowPanels related like pages in a book, when i click the 'next' button it will go to the next page, which is flowPanel too. on one of the page, it have lots of widgets, from previous page to this page, it always goes to the bottom of the page not the top. how can i make it show the top of the page instead? thanks. ...

GWT: Where (how) to define POJOs to make em available for client and server? (and to use datastore on serverside)

Hi, I try to get an application running which should interact with a server via RPC (JDO in Google DataStore). So I defined a persistent POJO on the server-side to get it put in the datastore via the PersistenceManager (as shown in the gwt rpc tuts). Everything works fine. But I am not able to receive the callback POJO on the client sid...

Building a massively scalable and secure social network on top of Eureka Streams?

http://en.wikipedia.org/wiki/Eureka_Streams http://www.eurekastreams.org/ Eureka Streams uses a shared nothing architecture. It uses Memcached, Apache Maven, PostgreSQL and Hibernate. It uses Shindig for OpenSocial. It makes use of Java Message Service (JMS), Java Persistence API (JPA), Lucene and Google Web Toolkit (GWT). It ma...