gxt

Java Generics: Generic type defined as return type only

I'm looking at some GXT code for GWT and I ran across this use of Generics that I can't find another example of in the Java tutorials. The class name is com.extjs.gxt.ui.client.data.BaseModelData if you want to look at all of the code. Here are the important parts: private RpcMap map; public <X> X get(String property) { if (allowNes...

GWT - GXT - How to get Radio Button Value ?

Hi I am using GWT (Google Web Toolkit) 1.5.3 et GXT (ExtJS) 1.2 I just want to create a simple form with some radio buttons generated after a RPC call, to get some values Code: final FormPanel simple = new FormPanel(); simple.setFrame(true); simple.setWidth(350); simple.setHeaderVisible(false); DateField date = ne...

GXT KeyListener.componentKeyDown() immediately closes MessageBox.alert()

In GXT, MessageBox methods are asynchronous, meaning that the application does not "lock up" while the message box is displayed. I using a KeyListener to process enter key presses in a form (to increase usability, i.e., allowing the form to be submitted by the enter key) and subsequently disabling the form fields while the application p...

What events can I catch when the user leaves a GXT grid?

I have a web app that uses GXT (version 1.2.2) grids extensively. I'd like to warn the user if they make changes but don't save. When I use the grid in a popup dialog, the only way for the user to leave is via a button (either Close or OK). If I add a SelectionListener to the Close button, I can do my "isDirty()" check and warn the use...

How can I tell what events fire from GXT?

I cannot seem to find any documentation of what events fire and when in GXT. The API docs have lists of all the events that could fire (in Events). And it describes how to handle events that you catch. But I'm interested in the opposite side, which events are fired when I take a certain action. I can set some listeners for various diff...

Debug console for GWT/GXT

I need to see component tree of the GWT application. DOM tree will be also acceptable. Unfortunatelly GWT hosted browser does not provide access for devToolbar. The only way I found is to compile to javascript and then use regular browser. But compilation takes enormous ammount of time. ExtJS has Debug Console, but I was not able to fi...

Changing NumberConstants.decimalSeparator() value

I'm working with NumberField and NumberFormat. How can I change NumberConstants.decimalSeparator() value without changing my locale? For instance I want to have "." or "," as decimal separators for all locales. Is it possible to create custom property file NumberConstants_bla.properties and force gxt use it instead of standard NumberCons...

[Ext-GWT] Adding a resize listener to LayoutContainer

I am using Ext-GWT 2.0.1 and GWT 1.6.4 I have a LayoutContainer that uses a RowLayout. The widgets are added to this container with RowData(1,-1), so that when they change in height, the container also changes height accordingly. I want to do something when this LayoutContainer changes size. How can I add a listener that does this? ...

Get Name of selected RadioButton in EXT-GWT RadioGroup

I have following code: final Radio trDelRadio = new Radio(); trDelRadio.setName("TDRADIO"); trDelRadio.setBoxLabel("Training"); final Radio cdcRadio = new Radio(); cdcRadio.setName("CDCRADIO"); cdcRadio.setBoxLabel("Content"); final Radio msRadio = new Radio(); msRadio.setName("MSRADIO"); msRadio.setBoxLabel("Management"); final Radi...

Ext-GWT TreeGrid indirectly calls a GWT-RPC callback? Why?

I am using GWT-RPC to populate Ext-GWT TreeGrids with data from a server. I am using 4 callbacks to populate 6 TreeGrids. As the callback onSuccess function modifies the TreeGrid by inserting rows, the TreeGridView needs to render the rows. The callback class is called MainPnlSummaryTablesAsyncCallback. For some reason, when it needs...

Is it possible to implement cross-browser username/password autocomplete in GXT?

Last night, I did a quick spike to try and implement username/password autocomplete in my GXT application. By "autocomplete", I don't mean Ajax-style autocomplete, but rather browser-based autocomplete. The best information I found on this via google is in the following post: http://osdir.com/ml/GoogleWebToolkit/2009-04/msg01838.html I...

How to Map unset property to value without getting NullPointerException in Dozer

Using Dozer to map two objects, I have: /** /* This first class uses the GXT (ExtJS) framework **/ Class1 extends BaseModelData { public int getId() { return (Integer)get("id"); } public void setId(int id) { set("id", id); } // more properties } Class2 { public int getId() { return i...

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

context: 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 with a widget? my first attempt wa...

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? ...

widget to upload multiple files

Hi I'm developping an application using Gwt and Gxt (Ext GWT). There isn't any widget in Gxt to attach many files in a form before posting it. I'd like something like this widget in extJS: http://www.extjs.com/learn/Extension:UploadForm Does someone know a solution to add such a widget in my gxt project ? Thanks for yours answers. ...

Rendering the elements of a GXT RadioGroup or CheckBoxGroup in multiple columns?

I am looking for a way to render the elements of a GXT (GWT-Ext) RadioGroup or CheckBoxGroup in a layout other than a single column (Orientation.VERTICAL) or a single row (Orientation.HORIZONTAL). I see that in ExtJS 3.0, RadioGroups and CheckBoxGroups are easily rendered in multiple columns. However, the configuration doesn't seem to ...

Django-GXT interaction

We are using Django as the back end and GXT 2.1 as the front end. Somehow my GXT application cannot communicate with GXT, without using requests in the form say http://localhost/ and so on. Does any one know about how we can go about it? ...

EXT GWT + java EE

Hello. My question is: what is the best way to send my jee annotated entity beans' data to the clientside to use it in a grid for example? Surely I could make the BaseModel-extended client models for each entity manually, but I wonder what could be the best-practice here. I need a step-by-step tutorial if possible. regards ...

GWT 2.0 RC1 & GXT 2.0.1

Hi, I'm wondering if already someone tried to use this combination ( GWT 2.0 RC1 with GXT 2.0.1 or any other version) and if so, then how it actually works ? any pitfalls ? Thanks ...

gxt + j2ee hosted mode

Hi. I'm trying to develop a jee+gxt application. I have an rpc call which calls a session bean's method. If I compile the project and run it in the browser, it works fine, but when I use hosted mode I get an exception like this: (edited for readability) Exception while dispatching incoming RPC call ... Caused by: java.lang.NullPointe...