gxt

GXT Problem with method override

Using GXT I would like to override the 'drop' in the 'Drag & Drop Grid' example on the GXT examples webpage. Does anyone have an idea as to the method I should override? The API is so vast and verbose that is is a near impossibility to find anything in this mess! ...

GXT - link two components height

Hi! I want to have a panel, with two columns. The first column will contain a list of beans, and the right one a form panel for editing those beans. What I want to do, is that list height is the same as height of the form panel on the right. My list of beans will be larger and larger over time, so it's height will probably exceed form h...

How to customize look and feel of gird element in GXT 2.0

Hi, I'm having trouble customizing the way GXT's grid elements appear. there are a few things I'd like to do and I simply don't know how. No column head fields. separate font size, color, type, etc. by column or by rows Can anyone posy me easy how to please? ...

GXT date field - show date after clearing

I hava and GXT form with a DateField. When I clear the form by invoking the clear() method on my form panel, my date field is cleared and stays empty. But I want the date field to display current date after clearing. How can I do this? ...

GXT - Auto height in Info popup

I am using class com.extjs.gxt.ui.client.widget.Info for showing popup messages. I need to show messages of different height, so popup element should change its height automatically. For first look, it is possible - Info has method setAutoHeight, inherited from BoxComponent, but I can't get instance of Info - it has only static methods f...

How do I add a click handler to a TreePanel in GXT 2.11?

There is a similar question to this for ExtJS but not for GXT. I wish to simply add an onclick handler to a TreePanel in GXT. That is, I wish to perform an operation when a user clicks on a node in the tree. The showcase does not seem to cover this most basic usecase. Thanks, ...

Design patterns for enabling user interface elements based on user permissions?

We have a web application and its front end is implemented with GWT/GXT. Users can belong to various groups and these groups can then have various permissions. The permissions are quite fine grained, for example comment_create, comment_edit, comment_delete and comment_read. What would be the best way to enable and disable user interface...

What is the best way to use Gilead with GXT and hibernate ?

Hello All, I wanted to understand the best way to integrate Gilead with GXT and hibernate. This article http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html describes the usage of Gilead with GWT. Most of the GXT components are bound using custom classes that inherit BaseModelData, does this mean we need to convert...

How can I override the browser keyboard shortcuts in my GWT/GXT app?

I'm using GWT and GXT and want to use keyboard shortcuts like CTRL-S (or CTRL-SHIFT-S) to save the current form. Problem is, I can't figure out how to override the browsers built-in CTRL-S. I tried using a componentEvent and calling stopevent, cancelbubble, etc with no luck. I also tried using Event.addNativePreviewHandler(new Event.N...

Ext GWT change ContentPanel background color on mouseover

In my page I have a Gxt ContentPanel with a white background. However, when the user mouses over the Header of the ContentPanel, I would like the background to change colors. I tried achieving this by using the protected addStyleOnOver method of Gxt Component, but it doesn't have any effect. Is there anything else I need to do to use th...

How do I restrict a window component to drag just inside a contentpanel on GXT - GWT?

Hi, How do I restrict a window component to drag just inside a contentpanel on GXT - GWT? I need your help, thanks. ...

How to pass widget values from one tab to another tab in GXT?

Im using GXT 2.1.1, I want to to pass widget values from one tab to another tab.For Example I have created two tabs, the first tab displays all the information of students in a grid with name, date of join, course selected .... and in other tab i want to display the student information. When ever a user selects the student from the grid ...

Horizontal scroll bar in combo box in GXT

I am working with GXT to develop a web application. But I am finding difficulty in adding the horizontal scroll bar in combo box. Some of the items of the combo box have large text and I can't see all the text when I see the combo box items. I am not finding a way to set a horizontal scroll bar to the combo box. When I searched in the ne...

paging grid in gxt

Im developing the paging grid using GXT 2.1.1, Im retrieving values from database tables using hibernate. My code is `public class ExampleSampleTrip extends Composite { final GreetingServiceAsync service = GWT.create(GreetingService.class); static class BeanModel implements ModelData { @Override public ...

Is there any widget to display an XML file as an expandable/collapsable tree in GWT?

Is there any GWT or GXT (or other library) widget that displays the contents of an XML file as a tree? Each node of the XML document would be a tree node and the user could expand/collapse the nodes by clicking on them. Syntax highlighting is also desirable, but that's an extra that I'm willing to live without. ...

GXT with JAXB classes

I am trying to create a user interface which contains an Editable grid which contains data from XSD file. I have generated the required classes from the XSD file using XJC. But I cant figure out how to load the data into the grid using methods of the JAXB generated classes. Can anyone please tell me how to go about doing this? I have imp...

ExtGWT- GXT, how can i define a class that extend from BaseModel?

I have read some tutorials, documentations but i don't know how to define a class that extend from BaseModel or ModelData? Specifically, I don't know how to name getter and setter methods and the values inside the method. Are there any code convention? Example: public void setName(String value) { set("name", value); //why is it "n...

Connecting the same database from two different web applications(GXT) using Hibernate

I am working with two different web applications built upon GXT. But the problem is that both the applications are accessing the same database and the hibernate is not allowing to do so when we tried to deploy together in Apache Tomcat and then access them simultaneously. Can you tell me how can we access the same database using hibernat...

How to set heading or field label for list view in GXT.?

Hi, Im new to GXT, Im developing project by using GXT 2.0.1. I want set field label on list view. How to set field label.? ListView<Stock> list2 = new ListView<Stock>(); list2.setDisplayProperty("name"); store = new ListStore<Stock>(); store.setStoreSorter(new StoreSorter<Stock>()); list2.setStore(store); ...

GWT and notifyAll() (java.lang.Object)

I'm making a call to the database. The result must be used for a subit form. So i want to wait until the result from the DB comes. For that i need a synchronization. My idea was to use the Object.notifyAll() from java.lang, but GWT doesn't support this. Is there any equivalent method in GWT for the notifyAll()? edit1: I'm using gxt Form...