gwt

Web Application using OSGi and GWT

Which is a good architecture for a Web Application using OSGI and GWT as UI? The aim is to use bundles to make bundles of web interface sections. If I add new bundle it will add new features (a menu for example) on the user interface, which cooperate with existing ones. ...

GWT PagingScrollTable ( set a style on a particular cell of the header table )

I have a column Definition for each colume that extends AbstractColumnDefinition these columns are put in a DefaultTableDefinition PART OF a PagingScrollTable example: NAME | SIZE | RES | DELETE | this style (AT THE END OF THE PAGE ) is added to the column names if you notice all of them are with a cursor pointer , meaning a hand sh...

LazyInitializationException when adding to a list that is held within a entity class using hibernate and gilead for gwt

Right so i am working with hibernate gilead and gwt to persist my data on users and files of a website. my users have a list of file locations. i am using annotations to map my classes to the database. I am getting a org.hibernate.LazyInitializationException when i try to add file locations to the list that is held in the user class. th...

With the introduction of the HTML5 <canvas> element, could Swing be implemented in GWT?

With the introduction of the HTML5 <canvas> element, could Swing theoretically be implemented in Google Web Toolkit (GWT) by using the <canvas> tag for drawing? I'm aware of efforts to port source code from using Swing calls to GWT calls, but what I'm after is a pure behind the scenes port where a Swing application would compile under G...

Is it possible to detect a scrollbar release event in GWT?

I'm building a GWT app where I want to be able to detect when a user releases a scroll bar on one of my ScrollPanels. My use case is that the horizontal scroll bar represents time. Since it's impossible to represent the full range of scrollable time I want to just represent a small window of time with the scroll bar. When the user moves...

What is the correct approach to using GWT with persistent objects?

Hi, I am currently working on a simple web application through Google App engine using GWT. It should be noted that this is my first attempt at such a task. I have run into to following problem/dilema: I have a simple Class (getters/setters and nothing more. For the sake of clarity I will refer to this Class as DataHolder) and I want...

Working with EnumSet class in GWT

I am having trouble using EnumSet on the client side. I get this runtime error message: java.util.EnumSet.EnumSetImpl is not default instantiable (it must have a zero-argument constructor or no constructors at all) and has no custom serializer. Is this is a known issue? Here is what I am doing (basically a hello world app) Service:...

Understanding Async Concept in WebServices

I've had the thrill recently of developing web service applications. Most of my experience is with GWT and mainly doing most things on the client side then doing an async call back for any additional data needed. However at the moment, I want a process that will be triggered on the client side, then on the server side, a loop will occu...

Loading GWT Messages from a Database

In GWT one typically loads i18n strings using a interface like this: public interface StatusMessage extends Messages { String error(String username); : } which then loads the actual strings from a StatusMessage.property file: error=User: {0} does not have access to resource This is a great solution, however my client is unben...

GWT: Editing Text Of Tree Item

Hi All. When a user clicks a 'Add Node' button above a tree and the program adds a tree item below the selected node, I would like to insert the new tree item with the text highlight and ready for editing by the user... like labels in GMail. Any ideas? --Kirt ...

GWT CssResource Customization

I'm writing a GWT widget using UIBinder and MVP. The widget's default styles are defined in TheWidgetView.ui.xml: <ui:style type="com.widgetlib.spinner.display.TheWidgetView.MyStyle"> .textbox { border: 1px solid #red; } .important { font-weight: bold; } </ui:style> The widget's CssResource interface is...

Prevent Cross-site request forgery - Never Rely on The SessionID Sent to Your Server in The Cookie Header

I am reading the tutorial at http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ It states Remember - you must never rely on the sessionID sent to your server in the cookie header ; look only at the sessionID that your GWT app sends explicitly in the payload of messages to your server. Is it use...

Deploy GWT Application to Google App Engine using NetBeans

Hello, I try to deploy a GWT application, to Google App Engine using NetBeans. I had successful run GWT sample http://code.google.com/webtoolkit/doc/latest/tutorial/create.html using Personal GlassFish v3 Prelude Domain, by 1) Copy generated source code from StockWatcher to C:\Projects\StockWatcherNetbeans\src\java\com\google\ 2) Modi...

SmartGWT Canvas width problem

I am having problems with showing my entire SmartGWT Canvas on my initial page. I've stripped everything out and am left with an extremely basic EntryPoint to illustrate my issue. When I just create a Canvas and add it to the root panel, I get a horizontal scrollbar in my browser. Can anyone explain why and what I can do to have the Canv...

[GWT 2.0.3] Accessing data across sessions

Hello, first timer here! I've recently adopted the GWT framework and I've run into trouble. I'm creating a simple web-app which provides an input textarea and a list where the written articles are listed, a guestbook application if you will. Now the problem is that I can't figure out how to maintain the list in a servletContext() - a g...

Framework to draw Edges and Nodes using GWT

I am searching for framework to draw Edges and Nodes. I want to create a visual graph and It should be draggable. I tried http://code.google.com/p/gwt-diagrams but this project is down. What is your suggestion? ...

Url mapping with my servlet?

Hi, I'm using GWT with GAE. When the user enters any of the following urls, I want to just serve my app as usual to them: http://www.mysite.com/ http://www.mysite.com/dog http://www.mysite.com/cat the first case works by default. I'm not sure how to get the /dog and /cat cases to work. I think I have to modify something with the url ...

how to call a javascript fucntion from an included javacript file using GWT?

I have a function Load() in a js file which I added to the GWT module. I am trying to call it using private static native void load() /*-{ $doc.Load(); }-*/; but it gives me error like Error(s) occurred! (TypeError): $doc.Load is not a function fileName: http://localhost:8888/myapp/888C05FB242806B071A932498F6B5AD9.cache.html lin...

CloseHandler<Window> and Window.ClosingHandler() working differently in IE

It seems that CloseHandler and Window.ClosingHandler() are not working or are not triggering the events in the same way under IE as opposed to Firefox. Window.addWindowClosingHandler(new Window.ClosingHandler() { @Override public void onWindowClosing(ClosingEvent event) { ...

GWT UiHandler on HTMLPanel

I'm writing a widget with the following markup: <g:HTMLPanel ui:field="shortcutPanel" styleName="{style.shortcut}"> <g:Image ui:field="shortcutImage"></g:Image> <span ui:field="shortcutLabel"></span> </g:HTMLPanel> So essentially a div that wraps and image and a label. Now, instead of adding the event handlers on the image/sp...