PDA

View Full Version : [FIXED] [GXT Beta 3] Table, HTTPProxy



jtmille3
19 May 2008, 5:14 AM
This hasn't been released yet, but I came across two issues with the SVN build.

1.) Problem with HTTPProxy and BasePagingLoader. When HTTPProxy generates the query parameters it fails to add an additional '&'. Looks like

"&sortField=null&sortDir=NONEstart=0&limit=20"

2.) Table selection is broken. Hopefully that will be resolved soon or I'm not selecting rows correctly. I had things working in Beta 2 though.

tableBinder.addSelectionListener, the TableBinder always returns null for selection. Even when a row is selected.

jtmille3
19 May 2008, 6:16 AM
Not sure if this is a bug or I'm not setting the SelectionProvider correctly. The TableBinder's getSelectionFromProvider() method is stubbed out. I had to implement my own to get it to work properly again.


protected List<BaseModel> getSelectionFromProvider() {
List<BaseModel> selection = new ArrayList<BaseModel>();
for (TableItem item : table.getSelectionModel().getSelectedItems()) {
selection.add((BaseModel) item.getData());
}
return selection;
}

darrellmeyer
19 May 2008, 6:44 AM
1.) Problem with HTTPProxy and BasePagingLoader. When HTTPProxy generates the query parameters it fails to add an additional '&'. Looks like

Fix is in SVN.


2.) Table selection is broken. Hopefully that will be resolved soon or I'm not selecting rows correctly. I had things working in Beta 2 though.

Fix is in SVN. getSelectionFromProvider is renamed to getSelectionFromComponent.

Let me know if you run into any issues with the changes.