Project

General

Profile

Revision 246e313b

ID246e313bdfa67d56f5010580fdba0f8275f9bab8
Parent f5b90187
Child ad0d2649

Added by Patrick Plitzner almost 3 years ago

ref #5458 Clear caches when re-initializing table view

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/util/DistributionEditorUtil.java
40 40
	    //navigate to table view
41 41
	    UI.getCurrent().getNavigator().navigateTo(VIEW_TABLE);
42 42
	}
43
    
44
    public static void clearSessionAttributes(){
45
    	VaadinSession.getCurrent().setAttribute(SATTR_TAXON_NODES_UUID, null);
46
    	VaadinSession.getCurrent().setAttribute(SATTR_SELECTED_VOCABULARY_UUID, null);
47
    	VaadinSession.getCurrent().setAttribute(SATTR_SELECTED_AREAS, null);
48
    	VaadinSession.getCurrent().setAttribute(SATTR_CLASSIFICATION, null);
49
    }
43 50

  
44 51
    public static boolean isAbbreviatedLabels(){
45 52
    	Object isAbbreviated = VaadinSession.getCurrent().getAttribute(DistributionEditorUtil.SATTR_ABBREVIATED_LABELS);
src/main/java/eu/etaxonomy/cdm/vaadin/view/dbstatus/RedirectAfterLoginView.java
17 17
	    //navigate to table view
18 18
		DistributionTableView distributionTableView = new DistributionTableView();
19 19
		new DistributionTablePresenter(distributionTableView);
20
		UI.getCurrent().getNavigator().removeView(DistributionEditorUtil.VIEW_TABLE);
20 21
		UI.getCurrent().getNavigator().addView(DistributionEditorUtil.VIEW_TABLE, distributionTableView);
21 22
	    UI.getCurrent().getNavigator().navigateTo(DistributionEditorUtil.VIEW_TABLE);
22

  
23
	    
24
	    DistributionEditorUtil.clearSessionAttributes();
23 25
	    distributionTableView.openDistributionSettings();
24 26
	}
25 27

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)