gxt

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

戏子无情 提交于 2019-12-24 11:50:11
问题 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 processes the user's credentials. If they are incorrect, I show a MessageBox.alert() and then re-enable the form fields. However, since alert() returns

ComboBox with multiselect Feature in GXT

你。 提交于 2019-12-24 10:45:31
问题 I am trying to implement a comboBox with multi-select feature. There will be a checkBox associated with each of the string and user can select one or many from the list. In GXT 2, we had CheckBoxListView which makes things easier. I had follwing idea of implementing it. Using a Grid which can have one column as CheckBox and other column as the string that i wnat to display and then adding the store of this grid to the CheckBoxStore. But, as the ListStore of Grid and ComboBoxes are not same, i

GXT checkbox in grid

女生的网名这么多〃 提交于 2019-12-24 06:59:28
问题 I need to update the store when the checkbox in the grid cell changed its state: to add or to remove the value from store. how to handle this event? BTW, I create the checkbox in grid in this way: column = new ColumnConfig(); column.setId("accepted"); column.setHeader("Accepted"); column.setWidth(55); UPD2: Now I do the following: create checkboxes as firstly decided: CheckColumnConfig checkColumn = new CheckColumnConfig("accepted", "", 55); CellEditor checkBoxEditor = new CellEditor(new

A little bit diffrent GWT/GXT persistent approach

拟墨画扇 提交于 2019-12-24 03:52:54
问题 I'm newbie with GWT/GXT and I'm looking for best persistence way for my future apps. I was considering many variants of doing that so I decided to draw a graph here: So my conclusions are: 1) JPA/Hibernate is the best persistence framework but it hates cooperation with GWT and a specially with GXT 2) JDBC it was just an example joke :) 3) MyBatis is really great tool for gaining data from db, its fast, efficient and has great possibilities not seen in Hibernate, but writing mappers is the

Window Location getParameter is always null in GWT/GXT Project?

孤街醉人 提交于 2019-12-23 05:25:58
问题 I am working GWT/GXT I am trying to practise some sample Examples. This is url of the project http://127.0.0.1:8888/Opera_Star.html?gwt.codesvr=127.0.0.1:9997 public void onModuleLoad() { Map<String, Entry> project = new FastMap<Entry>(); ProjectModel projectModel = new ProjectModel(); for (int i = 0; i < projectModel.getChildren().size(); i++) {// 1 children LoginCategory loginCategory = (LoginCategory) projectModel .getChildren().get(i); for (int j = 0; j < loginCategory.getChildren().size(

GWT Application throws 'JavaScriptException' in IE only, stack trace has no helpful information

被刻印的时光 ゝ 提交于 2019-12-22 09:18:18
问题 My GWT application is throwing a JavaScriptException at a certain point. This issue only occurs in Internet Explorer (both IE 8 and IE 8 running IE7 mode). The stack trace is as follows: com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument. number: -2147024809 description: Invalid argument. com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195) com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) com.google

GXT (Ext-GWT): Layout problems with ContentPanel

牧云@^-^@ 提交于 2019-12-22 05:17:16
问题 I have a ContentPanel that fits the entire window. It has a topComponent, a widget in the center, and a bottomComponent. I'm getting layout problems, when I try to add widgets to the topComponent after the ContentPanel has been rendered once: public void onModuleLoad() { final Viewport viewport = new Viewport(); viewport.setLayout(new FitLayout()); final ContentPanel contentPanel = new ContentPanel(new FitLayout()); contentPanel.setHeaderVisible(false); final LayoutContainer topContainer =

ie6 wast not previously defined error in GWT 2.6.0/GXT2.5.1

对着背影说爱祢 提交于 2019-12-19 11:50:32
问题 I got the following error when compiling the code with GWT 2.6.0 and GXT 2.5.1. Loading inherited module 'com.sencha.gxt.ui.GXT'L Loading inherited module 'com.sencha.gxt.data.Data' Loading inherited module 'com.sencha.gxt.core.Core' [ERROR] The value ie6 was not previously defined. [ERROR] Line 96: Unexpected exception while processing element 'set-property' Even though we don't specify ie6 in gxt.user.agent, we still get the error: "[ERROR] The value ie6 was not previously defined." Why

GWT 2.6 with GXT-3.0.1 error in compile

怎甘沉沦 提交于 2019-12-19 08:12:41
问题 since the 2.6.0 release of GWT which dropped support of ie6 browser my current project which also uses GXT is failing to compile with the following error: Loading inherited module 'com.sencha.gxt.ui.GXT' Loading inherited module 'com.sencha.gxt.data.Data' Loading inherited module 'com.sencha.gxt.core.Core' [ERROR] The value ie6 was not previously defined. [ERROR] Line 96: Unexpected exception while processing element 'set-property' i tried to set <set-property name="gxt.user.agent" value=

GWT 2.6 with GXT-3.0.1 error in compile

僤鯓⒐⒋嵵緔 提交于 2019-12-19 08:12:21
问题 since the 2.6.0 release of GWT which dropped support of ie6 browser my current project which also uses GXT is failing to compile with the following error: Loading inherited module 'com.sencha.gxt.ui.GXT' Loading inherited module 'com.sencha.gxt.data.Data' Loading inherited module 'com.sencha.gxt.core.Core' [ERROR] The value ie6 was not previously defined. [ERROR] Line 96: Unexpected exception while processing element 'set-property' i tried to set <set-property name="gxt.user.agent" value=