I got this code:
ButtonCell buttonCell=new ButtonCell(); CellList<String> cellList = new CellList<String>(buttonCell); ListDataProvider<String> cellListDataProvider = new ListDataProvider<String>(); List<String> data = cellListDataProvider.getList(); for (int i = 1; i < 12; i++) { data.add( String.valueOf(i)); } cellListDataProvider.addDataDisplay(cellList); SimplePager pager=new SimplePager(); pager.setDisplay(cellList); pager.setPageSize(3);
When clicking on a cell in a page in CellList, it will jump to another page. If I use TextCell, then there is no problem.
Someone told me the issue is due to DefaultKeyboardSelectionHandler.Check execution of that handler. I can fix the issue by disabling KeyboardSelectionPolicy of the CellList.
cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED);
If we do like that then it works, but:
- I don't understand why we have to do that?
- If I do that then "will it create any unexpected behavior for ButtonCellList"?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment