gwt

How to export GWT project classes into JAR file

Hi, I find it difficult to export classes from one project into JAR file, so that I could import it in another project. How do I try? I right-click on project in Package Explorer -> Export -> Java -> JAR file -> select all the packages I need. 'Export generated class files and resources' option is checked, other options are left unch...

Dynamically add widget to gxt/sencha widget

Hi everybodyI recently tried hands on gxt and bumped on problem of adding widgets to custom made widgets as they didn't show any changes for newly added widgets(which I thought in base is gwt and gxt will inherit this feature). I tried different methods mentioned in javadoc but didn't worked at all so I'm looking for some solution/appro...

How to make right architecture in Web application using Vaadin framework? Please Help!

HI, I am starting to developing web application and decide to use Vaadin + Java EE for reusable business logic. I know that Vaadin has MVP design pattern, but how to make good hierarchy of classes, write all in one MyApplication.java or make own Button classes or make Listeners in one side and UI components in other, and how to combine i...

how to tell different modes in gwt 2.0

Anyone know how to tell what mode an GWT 2.0 app is currently running at? The idea is that i could do something like: if(GWT.whatIsYourmode() == 'dev') //run some code else //run some different code ...

GWT Interview Questions

Can anyone suggest me some nice questions which could be asked for a GWT Developer? I am looking for a GWT developer and I am not sure what questions can be asked. I am planning to ask questions on GWT-RPC, GWT Widgets, etc., but I am not sure what exactlty I need to ask. ...

Hibernate and Internationalization using Tables

Hi With regards to the answer on my previous post: http://stackoverflow.com/questions/3958529/internationalization-of-user-data/3958595#3958595 Would it be possible to use Hibernate to link these tables together using annotations (or something else?) so that the existing models and database queries do not have to change? J ...

Any example on GWT 2.1 RequestFactory with Hibernate?

I try to download expenses sample project but can't make it run. I'm not familiar with maven and don't want to be confused by other new features (like mobile, activity & place...etc). I'm not using data nucleus nor appengine. Just want to have a bare bone RequestFactory with hibernate so that maybe I refer to it and migrate my code fro...

Select action from listbox, perform it on ticked values in GWT

Hi, This is my working code. What I was thinking of doing, is to add a few check boxes, and select an option from the List box. That option is applied to the ticked values, after clicking the apply button, preferably an async call. is that possible? I tried a few things like setting a listener for the button and then trying to get the ti...

Failing multiple field validation in SmartGWT

I am trying to have a form field contain one or more elements that are defined in a different data source. Elements have a numeric id and a human-readable name. It all works well until I try to save; in this case, I always get the "Not a valid option" error. The form I am editing is based on a Campaigns datasource, that may be linked to...

How do I use OAuth within my GWT application?

How do I use OAuth within my Java GWT application? In particular, I want to get a list of users in my Google Aps domain, using this API: http://code.google.com/googleapps/domain/profiles/developers_guide_protocol.html I know this sounds like a question, that probably has been asked many times before, but I couldn't find any Java code o...

GWT: Adding HTML / Label to flowPanel

I would like to use a flowPanel to contain a list of tags. The tag contain a name and a close button. However, when I add HTML / Label to flowPanel, it will create a new line because it's a DIV element. If the HTML / Label is a span element, there is no new line. However, I can't create spanElement on demand. Does anyone has any sug...

GWT History remove item

hi, is it possible to remove a History item in gwt? What i want to achieve is that in a special case pressing the browsers back button will show up the second history item from back. I know i can do it by manually calling History.back();, but i don't like that because the user will see the transition for a second or so which is not nice...

Determining user locale on server side in GWT app

I have implemented i18n on a GWT application to internationalize labels, buttons etc. Is there a way to determine the user locale on the server side of a GWT application. I have found a library called gwt_i18n_server_1.0.jar which I suspect allows me to do this but the documentation is a little thin. Is this possible? ...

Dynamically changing gxt/Sencha widgets

Hi everyobodyI was trying hands on Gxt/Sencha and bumped on this issue of adding widgets into HorizontalPanel etc to change widgets dynamically but not got it to worked as I assumed it is gwt in base may be applicable to it too. I tried repaint() and adding widgets at runtime also but had not luck there too. Kindly suggest some solution/...

How to create a gwt.xml file for an external jar?

I have an external JAR signpost-core-1.2.1.1.jar (from http://code.google.com/p/oauth-signpost/), that I want to include into my Java GWT project. So I add this external JAR file to my build path in Eclipse and put theese imports to my Class: import oauth.signpost.basic.DefaultOAuthConsumer; import oauth.signpost.exception.OAuthCommuni...

uibinder widget add child fail

i try to add child in uibinder i get error in a text-only context. Perhaps you are trying to use unescaped HTML where text is required, as in a HasText widget? Element <package:ListItem..... my parent look like below public class ListItem extends ComplexPanel implements HasText, HasHTML, HasClickHandlers, HasKeyDownHandlers, HasBlurH...

display open nodes in a GWT Tree

I create a GWT Tree, and I would like it to be initially displayed with open nodes. Let's take the standard Tree example from GWT javadocs: public class TreeExample implements EntryPoint { public void onModuleLoad() { // Create a tree with a few items in it. TreeItem root = new TreeItem("root"); root.addItem("item0"); ...

java/GWT web app : how to get a callback on Session Timeout

We have a GWT app that is deployed on Tomcat. On the server, we have set a timeout of 1 minute httpSession.setMaxInactiveInterval(1*60) At the client-side, we set a few cookies with a timeout value of 1 minute as well. After 1 minute, we notice that the client-side cookies are removed; However the JSESSIONID set by the servlet contai...

Laying out a table in a GWT UiBinder (with Grid?)

I want to make a table of data in a UiBinder. I need programmatic access so I can add data at runtime, but I'd like my designer to have access to header names, column styles, etc, in the ui.xml file. Is there a solution that meets these needs? A Grid perfectly satisfies my programmatic access, but I don't see a way to specify rows or ...

Implementing Real-Time Collaboration On A Page?

I would like to create a web page which would allow multiple users to work together on a page, Imagine a web based editor that allowed to users to change the documents as an example of this type of feature. How would more experienced programmers go about implementing this as i really cant seem to formulate any way to even begin going ab...