Tuesday, January 24, 2012

Re: Making an RPC call from a CellTable ButtonCell in a view (MVP pattern)

It's a weird one, this. It does seem much easier to have 

                        deleteButtons.setFieldUpdater(new FieldUpdater<SupplierFile, String>()
{
@Override
public void update(int index, SupplierFile object, String value)
{
TheApp.get().getEventBus().fireEvent(new DeleteFileEvent(object.getId()));
}
});

in my view than do it any other way. At least I'm firing an event, so the actual logic is carried out in the presenter. It'll do for now I reckon! I don't want to get into modifying classes, etc. I'm only in the early stages of making this app so I'll move on to column sorting for now.

What do you use CellTable for, Patrick?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NgVZUBSRqWAJ.
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.

No comments:

Post a Comment