You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EditableTableFocus.java 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. package com.vaadin.tests.components.table;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.v7.ui.Table;
  4. public class EditableTableFocus extends TestBase {
  5. @Override
  6. public void setup() {
  7. Table table = new Table();
  8. table.addContainerProperty("TextField", String.class, null);
  9. table.setColumnWidth("TextField", 150);
  10. for (int i = 1; i < 100; i++) {
  11. table.addItem(new String[] { "" }, new Integer(i));
  12. }
  13. table.setEditable(true);
  14. addComponent(table);
  15. }
  16. @Override
  17. protected String getDescription() {
  18. return "<b>IE-Problem: TextFields in table lose their focus, no input possible</b><p>"
  19. + "Try inputs in the table's textfields in the freshly started programm. For the moment all works fine.<p>"
  20. + "Then scroll the table down one page or more.<br>"
  21. + "Try again to make some inputs. Nothing happens...<br>"
  22. + "Now the textfields always lose their focus immediately after they got it and no input is taken.<p>"
  23. + "<b>This problem is exclusive to Microsoft's Internet Explorer!</b>";
  24. }
  25. @Override
  26. protected Integer getTicketNumber() {
  27. return 7965;
  28. }
  29. }