PDA

View Full Version : [FIXED] RC1: Table RowDoubleClick works in GWT shell and IE but not in FF



andrey
20 Jun 2008, 12:43 PM
A double click on a table row is not calling the event handler in FireFox 3.0. Here's the test code:

import java.util.ArrayList;
import java.util.List;

import com.extjs.gxt.ui.client.Events;
import com.extjs.gxt.ui.client.event.BaseEvent;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.button.Button;
import com.extjs.gxt.ui.client.widget.table.Table;
import com.extjs.gxt.ui.client.widget.table.TableColumn;
import com.extjs.gxt.ui.client.widget.table.TableColumnModel;
import com.extjs.gxt.ui.client.widget.table.TableItem;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;

public class TestTable implements EntryPoint {
private Table table;

public void onModuleLoad() {
List<TableColumn> columns = new ArrayList<TableColumn>();
TableColumn column = new TableColumn("Col1", 100);
columns.add(column);

TableColumn column2 = new TableColumn("Col2", 200);
columns.add(column2);

TableColumnModel cm = new TableColumnModel(columns);
table = new Table(cm);

table.setSize(300, 400);
table.addListener(Events.RowDoubleClick, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
Info.display("Info", "DoubleClick occurred", "");
GWT.log("DoubleClick occurred", null);
}
});

for(int i = 0; i < 3; ++i) {
Object[] values = { "c1", "c2" };
TableItem item = new TableItem(values);
table.add(item);
}

RootPanel.get().add(table);
}
}Thx,
Andre

darrellmeyer
22 Jun 2008, 6:50 AM
Fix is in SVN.