refactored user selection dialog user bean
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@82552 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d545b6fd9d
commit
352ae7e8e4
|
@ -5,6 +5,9 @@
|
|||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
|
||||
<dependent-module archiveName="user-selection-dialog-0.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/user-selection-dialog/user-selection-dialog">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||
<property name="context-root" value="news-feed"/>
|
||||
</wb-module>
|
||||
|
|
|
@ -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.SelectionUser;
|
||||
import org.gcube.portlets.widgets.userselection.shared.UserBean;
|
||||
|
||||
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<SelectionUser> toShow = new ArrayList<SelectionUser>();
|
||||
ArrayList<UserBean> toShow = new ArrayList<UserBean>();
|
||||
for (Like like : result) {
|
||||
toShow.add(new SelectionUser(like.getUserid(), like.getFullName(), like.getThumbnailURL()));
|
||||
toShow.add(new UserBean(like.getUserid(), like.getFullName(), like.getThumbnailURL()));
|
||||
}
|
||||
eventBus.fireEvent(new UsersFetchedEvent(toShow));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue