Project

General

Profile

« Previous | Next » 

Revision cb4029b0

Added by Patrick Plitzner over 7 years ago

ref #5458 Redesign navigation architecture

  • after login the user will be redirected directly to the table view and the settings dialog will be opened -made settings window implement ClickListener and ValueChangeListener
  • fixed possible NPEs due to redesign

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/ui/DbStatusUI.java
9 9
import com.vaadin.server.VaadinRequest;
10 10
import com.vaadin.ui.UI;
11 11

  
12
import eu.etaxonomy.cdm.vaadin.presenter.dbstatus.DistributionSelectionPresenter;
13 12
import eu.etaxonomy.cdm.vaadin.servlet.CdmVaadinConversationalServlet;
14
import eu.etaxonomy.cdm.vaadin.view.dbstatus.DistributionSelectionView;
13
import eu.etaxonomy.cdm.vaadin.view.dbstatus.RedirectAfterLoginView;
15 14

  
16 15
@Theme("macosx")
17 16
@Title("CDM Board")
18 17
@SuppressWarnings("serial")
19 18
public class DbStatusUI extends AbstractAuthenticatedUI{
20 19

  
21
	//    @WebServlet(value = "/*", asyncSupported = true, initParams = {
22
	//			@WebInitParam(name="org.atmosphere.cpr.asyncSupport", value="org.atmosphere.container.Jetty9AsyncSupportWithWebSocket")
23
	//	})
24

  
25
	private static final String FIRST_VIEW = "selection";
26

  
20
	private static final String FIRST_VIEW = "redirectDbStatus";
27 21

  
28 22
	@WebServlet(value = {"/app/dbstatus/*"}, asyncSupported = true)
29 23
	@VaadinServletConfiguration(productionMode = true, ui = DbStatusUI.class, widgetset = "eu.etaxonomy.cdm.vaadin.AppWidgetSet")
......
34 28
	@Override
35 29
	protected void doInit(VaadinRequest request) {
36 30
		Navigator navigator = UI.getCurrent().getNavigator();
37
		DistributionSelectionView dsv = new DistributionSelectionView();
38
		new DistributionSelectionPresenter(dsv);
39
		navigator.addView("selection", dsv);
40

  
41

  
31
		RedirectAfterLoginView view = new RedirectAfterLoginView();
32
		navigator.addView(getFirstViewName(), view);
42 33
	}
43 34

  
44 35
	@Override
......
46 37
		return FIRST_VIEW;
47 38
	}
48 39

  
49

  
50 40
}

Also available in: Unified diff