likeLink.addClickHandler(new ClickHandler()
{
public void onClick(final ClickEvent event)
{
final LikeActionType actionType = liked ? LikeActionType.REMOVE_LIKE : LikeActionType.ADD_LIKE;
liked = !liked;
likeLink.setText(liked ? "Unlike" : "Like");
ActivityLikeModel.getInstance().update(new SetActivityLikeRequest(activityId, actionType));
}
});