Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

MultipleDebugIds.java 899B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.vaadin.tests.components;
  2. import com.vaadin.ui.Button;
  3. import com.vaadin.v7.ui.TextField;
  4. public class MultipleDebugIds extends TestBase {
  5. @Override
  6. protected String getDescription() {
  7. return "An exception should be thrown if the same debugId is assigned to several components";
  8. }
  9. @Override
  10. protected Integer getTicketNumber() {
  11. return 2796;
  12. }
  13. @Override
  14. protected void setup() {
  15. TextField textField = new TextField();
  16. TextField textField2 = new TextField();
  17. Button button = new Button();
  18. Button button2 = new Button();
  19. textField.setId("textfield");
  20. button.setId("button");
  21. textField2.setId("textfield2");
  22. button2.setId("textfield");
  23. addComponent(textField);
  24. addComponent(textField2);
  25. addComponent(button);
  26. addComponent(button2);
  27. }
  28. }