Wednesday, April 6, 2011

Re: Trouble with CheckboxCell in CellTable

A workaround is http://code.google.com/p/google-web-toolkit/issues/detail?id=5964

On 6 abr, 12:01, Juan Pablo Gardella <gardellajuanpa...@gmail.com>
wrote:
> 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate