EventBus.getInstance().addObserver(GotResourceDTOResponseEvent.class,
new Observer<GotResourceDTOResponseEvent>()
{
public void update(final GotResourceDTOResponseEvent event)
{
widget.add(new ResourceCountWidget(CountType.LIKES, resourceUrl, title, desc, thumbs, event
.getResponse().getLikeCount(), event.getResponse().getLikersSample(), event
.getResponse().isLiked()));
widget.add(new ResourceCountWidget(CountType.SHARES, resourceUrl, title, desc, thumbs, event
.getResponse().getShareCount(), event.getResponse().getSharersSample(), event
.getResponse().isLiked()));
}
});
LikeResourceModel.getInstance().fetch(