1)  are you sure the code compile for other browser?

2) I do the same thing without problems:

CheckBoxColumn<MyEntity> seleccionado = new CheckBoxColumn<MyEntity>() {
@Override
public Boolean getValue(MyEntity object) {
return object.isSeleccionado();
}
};
seleccionado.setFieldUpdater(fieldUpdaterForMyEntity());

...

private FieldUpdater<MyEntity , Boolean> fieldUpdaterParaDeclaracion() {

return new FieldUpdater<MyEntity , Boolean>() {
@Override
public void update(int index, MyEntity object,
Boolean value) {
if (value != null ) {
object.setSelected(value.booleanValue());
}

};
};
}

I have a selected var. instance (is transient) for query if the entity is
selectable.

Juan



2011/6/10 bb.f.pav <[email protected]>

> Hi,
>
> I have a celltable with several columns, one of them holds CheckboxCell
> ´s. Additional I use a SingleSelectionModel for that celltable. The
> CheckboxCell column should be independent from the
> SingleSelectionModel. The user should be able to check more that one
> checkbox and select only one row via mouse click or keyboard. That's
> why I Instantiate them as follows:
>
> celltable.setSelectionModel(new
> SingleSelectionModel<MyDomainObject>());
> Column<MyDomainObject, Boolean> selCol = new Column<MyDomainObject,
> Boolean>(new CheckboxCell()) {
>   ...
> };
>
> selCol.setFieldUpdater(new FieldUpdater<MyDomainObject, Boolean>() {
>   ...
> });
>
> celltablekurzansicht.addColumn(selCol, "Select");
>
>
>
> I chrome everything works as planned, the user can check several
> checkboxes. After a Checkbox is clicked, row is selected, status
> changed and setFieldUpdater is called.
>
> In firefox 3.6 - 4.0 and ie7 the user can check several checkboxes,
> too, but only after two clicks. After the 1st click the row will only
> be selected. Only the 2nd click on a selected row will change the
> status and call setFieldUpdater.
>
>
> I hope someone can bring light into the darkness and help me to
> achieve the chrome behaviour in firefox (from 3.6) and ie7, too.
>
>
> thx in advance!
> bb.f.pav
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

Reply via email to