gCube 3.4
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@99677 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9b2ca36a5d
commit
b8ab0415c5
|
@ -4,7 +4,10 @@
|
||||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
<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="/src/main/java"/>
|
||||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
|
<wb-resource deploy-path="/WEB-INF/classes" source-path="/target/generated-sources/gwt"/>
|
||||||
<dependent-module archiveName="pickuser-widget-0.4.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/pickuser-widget/pickuser-widget">
|
<dependent-module archiveName="session-checker-0.2.5-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/session-checker/session-checker">
|
||||||
|
<dependency-type>uses</dependency-type>
|
||||||
|
</dependent-module>
|
||||||
|
<dependent-module archiveName="wsmail-widget-1.7.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/wsmail-widget/wsmail-widget">
|
||||||
<dependency-type>uses</dependency-type>
|
<dependency-type>uses</dependency-type>
|
||||||
</dependent-module>
|
</dependent-module>
|
||||||
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
<property name="java-output-path" value="/${module}/target/www/WEB-INF/classes"/>
|
||||||
|
|
|
@ -8,6 +8,7 @@ import net.eliasbalasis.tibcopagebus4gwt.client.PageBusListener;
|
||||||
import org.gcube.portal.databook.shared.ClientFeed;
|
import org.gcube.portal.databook.shared.ClientFeed;
|
||||||
import org.gcube.portal.databook.shared.ClientFeed.ClientFeedJsonizer;
|
import org.gcube.portal.databook.shared.ClientFeed.ClientFeedJsonizer;
|
||||||
import org.gcube.portlets.user.newsfeed.client.panels.NewsFeedPanel;
|
import org.gcube.portlets.user.newsfeed.client.panels.NewsFeedPanel;
|
||||||
|
import org.gcube.portlets.widgets.sessionchecker.client.CheckSession;
|
||||||
import org.jsonmaker.gwt.client.Jsonizer;
|
import org.jsonmaker.gwt.client.Jsonizer;
|
||||||
|
|
||||||
import com.google.gwt.core.client.EntryPoint;
|
import com.google.gwt.core.client.EntryPoint;
|
||||||
|
@ -32,7 +33,7 @@ public class NewsFeed implements EntryPoint {
|
||||||
mainPanel = new NewsFeedPanel();
|
mainPanel = new NewsFeedPanel();
|
||||||
resize();
|
resize();
|
||||||
RootPanel.get(UNIQUE_DIV).add(mainPanel);
|
RootPanel.get(UNIQUE_DIV).add(mainPanel);
|
||||||
|
|
||||||
Window.addResizeHandler(new ResizeHandler() {
|
Window.addResizeHandler(new ResizeHandler() {
|
||||||
public void onResize(ResizeEvent event) {
|
public void onResize(ResizeEvent event) {
|
||||||
int width = RootPanel.get(UNIQUE_DIV).getOffsetWidth();
|
int width = RootPanel.get(UNIQUE_DIV).getOffsetWidth();
|
||||||
|
|
|
@ -250,6 +250,8 @@ public class NewsFeedPanel extends Composite {
|
||||||
loadingImage = new Image(loading);
|
loadingImage = new Image(loading);
|
||||||
newsPanel.add(loadingImage);
|
newsPanel.add(loadingImage);
|
||||||
|
|
||||||
|
CheckSession.getInstance().startPolling();
|
||||||
|
|
||||||
newsService.getUserSettings(new AsyncCallback<UserSettings>() {
|
newsService.getUserSettings(new AsyncCallback<UserSettings>() {
|
||||||
@Override
|
@Override
|
||||||
public void onFailure(Throwable caught) {
|
public void onFailure(Throwable caught) {
|
||||||
|
|
|
@ -117,7 +117,7 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService
|
||||||
*/
|
*/
|
||||||
public String getDevelopmentUser() {
|
public String getDevelopmentUser() {
|
||||||
String user = TEST_USER;
|
String user = TEST_USER;
|
||||||
//user = "massimiliano.assante";
|
// user = "massimiliano.assante";
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -33,6 +33,16 @@
|
||||||
<servlet-name>workspaceServiceImpl</servlet-name>
|
<servlet-name>workspaceServiceImpl</servlet-name>
|
||||||
<url-pattern>/newsfeed/WorkspaceLightService</url-pattern>
|
<url-pattern>/newsfeed/WorkspaceLightService</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>checkServlet</servlet-name>
|
||||||
|
<servlet-class>org.gcube.portlets.widgets.sessionchecker.server.SessionCheckerServiceImpl</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>checkServlet</servlet-name>
|
||||||
|
<url-pattern>/newsfeed/checksession</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
|
||||||
<!-- Default page to serve -->
|
<!-- Default page to serve -->
|
||||||
<welcome-file-list>
|
<welcome-file-list>
|
||||||
|
|
Loading…
Reference in New Issue