Hi,

I have problem with update a checkbox column. I try make a sample, but I
can't reproduce, but when I debug my app, I reach CheckboxCell.render
method:

<pre>
 @Override
  public void render(Context context, Boolean value, SafeHtmlBuilder sb) {
    // Get the view data.
    Object key = context.getKey();
    Boolean viewData = getViewData(key);
    if (viewData != null && viewData.equals(value)) {
      clearViewData(key);
      viewData = null;
    }

    if (value != null && ((viewData != null) ? viewData : value)) {
      sb.append(INPUT_CHECKED);
    } else {
      sb.append(INPUT_UNCHECKED);
    }
  }
</pre>

value parameter is false, so the checkBox must display unchecked, but when
ask:

Boolean viewData = getViewData(key);

Return true and then show checkbox checked becouse don't clear cache data.
Is this a bug? I use GWT 2.2.0

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to