2
голосов
1ответов
1163 просмотров

Instanciate an injector with multiple AbstractGinModule

In google Guice, I can create an injector based on multiple module with the function createInjector. Because I use GWT.create to instanciate the injector in GoogleGin, is it possible to create a Ginjector based on multiple AbstractGinModule. If we can't, how do you organize your code to avoid h...

2
голосов
2ответов
787 просмотров

Which GWT book to buy? Most seem to be for versions 1.4

I was thinking about getting GWT in Practice by Robert Cooper, or Google Web Toolkit Applications by Ryan Dewsbury However those are from May 08 and Dec 07. Both would be written for 1.4 - I was looking through the release notes to see what's changed since then: Nothing seems to have changed fr...

4
голосов
10ответов
1069 просмотров

I want to make a "Web 2.0" application without using JavaScript directly

I'm a full time Java developer of around 4 years, professionally. I'm a GWT fanatic. I love Java. Here's the problem: In my free time I often fall victim to the verbosity of my favorite tools for doing "heavy" development. I also often fall into the trap of obsessively engineering my softwar...

1
голосов
1ответов
1319 просмотров

GWT interface to Solr index

I have a solr index on a remote server and need to create a search page interface. I am using GWT to code the pages and XML-HTTP to query the index and receive the response. The problem is the same-site origin security policy. It won't let JavaScript retrieve the remote XML data. Is there a worka...

0
голосов
3ответов
5110 просмотров

Handle callback for ENTER key in GWT-Ext's NumberField

I use GWT-Ext library for building GUI for a webapp. I'd like to process an ENTER key press inside of the NumberField. It should be like this: final NumberField requiredHeight = new NumberField(); requiredHeight.setValue(125); requiredHeight.setAllowBlank(false); requiredHeight....

5
голосов
2ответов
7061 просмотров

GWT removeClickHandler

GWT introduced with version 1.6 handlers to be used instead of listeners. Now I was used to add and remove those listeners to achieve certain behavior. But as I move towards using handlers I miss the remove methods. Like removeClickHandler for the click event. Is there a way to do this, or am ...

0
голосов
1ответов
1199 просмотров

Is it possible to use Ext GWT and Smart GWT components in the same project?

I want to use ext-gwt in one of my projects but some components of ext-gwt is not enough for me. Smart-Gwt has much more components and I want to use also smart-gwt components in this project. Is it possible?

4
голосов
4ответов
7446 просмотров

GWT- How to call an INSTANCE Java Method from Handwritten JavaScript?

I need to call an instance Java method from handwritten Javascript. In the GWT docs it is explained how to do this with static methods and classes and it works fine: http://code.google.com/p/google-web-toolkit-doc-1-6/wiki/DevGuideJavaFromJavaScript (Calling a Java Method from Handwritten Java...

2
голосов
3ответов
5778 просмотров

Memory usage of a GWT application

I'm currently working on a GWT application as a proof of technology for future projects. I like the way of building my AJAX code in Java instead of JavaScript. But I seem to be running into a memory problem when I repeat calls to an RPC service. The browser memory usage keeps growing and growing....

1
голосов
1ответов
474 просмотров

GWT browser returns an error, but GWT does not

I made some changes to GWT app without testing it in the client browser. I just now tested it in the browser and now the browser is throwing an error: Error: uncaught exception: java.lang.IllegalArgumentException: Widget must be a child of this panel. How do I figure out why this is being t...

23
голосов
5ответов
16280 просмотров

GWT is there a <label> widget?</label>

I have to add a form to a small piece of AJAX functionality implemented in GWT. In HTML terms, I'd like &lt;label for="personName"&gt;Name:&lt;/label&gt;&lt;input type="text" size="50" id="personName"/&gt; It appears the Label widget in GWT simply renders as a DIV. Ideally I would like clicki...

1
голосов
3ответов
2782 просмотров

GWT Accessing Widget Methods without knowing the name of the Widget

This may have been asked before but I have no idea how to word it to search for it. I have a composite widget that has methods to update some of the widgets that make up the composite widget. When I add this composite widget to my panel I use a do while loop to pull data from an XML file and pop...

1
голосов
1ответов
1726 просмотров

GWT: Disable middle mouse button scroll for firefox

I made in GWT custom modal message box. It has also bottom layer. This means that I expect restriction of any user action at the page except clicking 'Ok'. I made something like this (click on the 'show dialog box'). I have made bottom layer that covers all bottom controls. It has style: .glas...

1
голосов
1ответов
681 просмотров

SmartGWT Calendar Width and Height

I've tried setting an explicit width and height to the calendar widget in the SmartGWT library using calendar.setWidth(500) and calendar.setHeight(400) to no avail. Any ideas why this wouldn't work? Thanks!

6
голосов
2ответов
9471 просмотров

Titled frame panel for GWT (using FIELDSET and LEGEND html tags)

I'm trying to create a titled border frame in GWT, which results in this: This can be done using HTML fieldset and legend tags, such as &lt;fieldset&gt; &lt;legend&gt;Connection parameters&lt;/legend&gt; ... the rest ... &lt;/fieldset&gt; I want to create a custom widget in GWT tha...

8
голосов
1ответов
5377 просмотров

Where does GWT's Hosted Mode Jetty Run From?

I'm trying to call a web service in my back end java code when it's running in hosted mode. Everything loads fine, the GWT RPC call works and I can see it on the server, then as soon as it tries to call an external web service (using jax-ws) the jetty falls over with a Internal Server Error (...

1
голосов
2ответов
764 просмотров

Is gchart safe to use?

The home page for gchart, a client side charting add-in for Google Web Toolkit (GWT), has a long screed about how the project's only maintainer thinks his Google account has been hacked and because of that he will be "disavowing/abandoning my own project and Google account". Does that mean the p...

0
голосов
4ответов
238 просмотров

Variable scope in the code

I was going over the tutorials for GWT and was confused by this piece of code. The code is at GWT tutorials private void addStock() { final String symbol = newSymbolTextBox.getText().toUpperCase().trim(); newSymbolTextBox.setFocus(true); // Stock code must be between 1 ...

16
голосов
7ответов
10805 просмотров

Problem with GWT behind a reverse proxy - either nginx or apache

I'm having this problem with GWT when it's behind a reverse proxy. The backend app is deployed within a context - let's call it /context. The GWT app works fine when I hit it directly: http://host:8080/context/ I can configure a reverse proxy in front it it. Here's my nginx example: upstre...

1
голосов
2ответов
3447 просмотров

How can I replace a div with a widget when it is already contained in another widget?

I'm using Ext-GWT and I think ListView is the right layout for what I need. My problem is that I have to use a HTML template for all of my items, but I want to build GWT/Ext-GWT widgets instead, so I'm using div placeholders that I will replace with the proper widgets. How can I replace my div w...

2
голосов
1ответов
1610 просмотров

AccessControlException while connecting MySQL using JDBC in GWT hosted mode

I want to connect to a mysql database at localhost:3306 using jdbc in a GWT servlet, but when I try connecting I get this error: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) ... I know that I need to apply a security policy for tomcat to s...

2
голосов
1ответов
1734 просмотров

How do I add MouseEvents to an AbsolutePanel?

How do I add MouseEvents, specifically MouseOutHandlers to an AbsolutePanel without creating a Composite widget? Or is this possible? From what I can tell it involves adding a DomHandler, and a HandlerRegistration. A detailed example would be greatly appreciated considering I am quite new GWT a...

15
голосов
5ответов
4907 просмотров

Does GWT have a Paragraph widget?

I've drawn a blank. Does GWT have a widget that produces the HTML P tag? I want just the P tag to appear in the DOM, without any extraneous DIV's.

7
голосов
1ответов
5713 просмотров

How can I replace a GWT widget in a Panel?

I have a Composite whose main widget has two children, thus: public MyComposite() { child1 = new FlowPanel(); child1.getElement().setId("child1"); child2 = new FlowPanel(); child2.getElement().setId("child2"); panel = new FlowPanel(); panel.add(child1); panel.add(ch...

16
голосов
3ответов
15238 просмотров

Where do I put static files for GWT app? war folder or public folder?

I have some JavaScript files, a main HTML file, a main CSS file, and some CSS files that get imported into the main one. I understand that I can put static files in two places: a) the 'war' folder; or b) the 'public' folder. Where is the best place to put my static files? Are the two locations ...

3
голосов
3ответов
3549 просмотров

how to centralize "loading" screen for GWT RPC?

How can I centralize management of a "loading" icon for GWT async RPC calls? I'm looking for a way to have every async call automatically kick off a timer. When the timer fires, if the RPC has not yet completed, a "loading" icon should be displayed. When the RPC completes (either onSuccess() o...

5
голосов
2ответов
5158 просмотров

GWT + Spring: NullPointerException on getServletContext() call

I'm currently experimenting with GWT and Spring. More specifically I wanted to make the GreetingService sample to work with Spring on the server side. There are a couple of articles available for realizing this (I'm linking them here since some of you may be interested): http://ice09.wordpress....

0
голосов
2ответов
1399 просмотров

Make GWT interact with ASP.NET Web Service

Does anyone know of a good article or tutorial on the Internet demonstrating the use of GWT leveraging a (ASP.NET) web service cross domain? To my knowledge, interacting with either XML or JSON should be possible from GWT, but becomes a lot more difficult when the web service is on a different d...

2
голосов
1ответов
600 просмотров

How to remove an element from a JsArray in Google Web Tools?

I'm using Google Web Tools, and have a JsArray, which I'm populating with data from JSON. I'm able to modify items within the array and add items to it, but I can't figure out how to remove an item from it. I'm looking for something similar to the pop() method in JavaScript. I can add an item ...

1
голосов
2ответов
1161 просмотров

GWT and jQuery: how to use jQuery to remove Events generated by GWT code

How can I use jQuery to remove a click event on an Anchor generated by GWT? For example, I have some GWT code like this: Anchor a = new Anchor("name") a.addClickHandler(new ClickHandler(){ public void onClick(ClickEvent event) { //do something } }); So it generates HTML code li...