updated user selection dialog dep

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@86797 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-12-10 17:10:40 +00:00
parent f6a12af0bd
commit fc2a51286c
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ import org.gcube.portlets.widgets.userselection.client.UserSelectionDialog;
import org.gcube.portlets.widgets.userselection.client.events.SelectedUserEvent;
import org.gcube.portlets.widgets.userselection.client.events.SelectedUserEventHandler;
import org.gcube.portlets.widgets.userselection.client.events.UsersFetchedEvent;
import org.gcube.portlets.widgets.userselection.shared.UserBean;
import org.gcube.portlets.widgets.userselection.shared.ItemSelectableBean;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.RunAsyncCallback;
@ -620,9 +620,9 @@ public class NewsFeedPanel extends Composite {
@Override
public void onSuccess(ArrayList<Like> result) {
ArrayList<UserBean> toShow = new ArrayList<UserBean>();
ArrayList<ItemSelectableBean> toShow = new ArrayList<ItemSelectableBean>();
for (Like like : result) {
toShow.add(new UserBean(like.getUserid(), like.getFullName(), like.getThumbnailURL()));
toShow.add(new ItemSelectableBean(like.getUserid(), like.getFullName(), like.getThumbnailURL()));
}
eventBus.fireEvent(new UsersFetchedEvent(toShow));
}