sivarajankumar / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

TextCellEditor: empty string in the cell removes cell lines in the table #136

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Modify PagingScrollTableDemo.java (college cell editor):

// College cell editor
TextCellEditor<Serializable> collegeEditor = new
TextCellEditor<Serializable>() {
      @Override
      protected Object getValue() {
        return super.getValue();  // change
      }

      @Override
      public boolean onAccept() { 
//    change
//        if (getValue().equals("")) {
//          Window.alert("You must enter a school");
//          return false;
//        }
        return true;
      }

      @Override
      protected void setValue(Object value) {
        super.setValue(value.toString().substring(0)); // change
      }
    };

2. Run the demo and modify College column.

What is the expected output? What do you see instead?

Expected output is empty cell with border lines.
I see empty cell without border lines.

What version of the product are you using? On what operating system?
incubator: r854
os: ubuntu 8.04

Please provide any additional information below.
&nbsp; could be handled automatically by the system.

Original issue reported on code.google.com by igor.sec...@gmail.com on 18 Aug 2008 at 5:10

GoogleCodeExporter commented 8 years ago

Original comment by ecc%google.com@gtempaccount.com on 21 Aug 2008 at 7:46