Revision 157c9c3d
Added by Andreas Kohlbecker over 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/LoginPresenter.java | ||
---|---|---|
21 | 21 |
import org.springframework.security.core.AuthenticationException; |
22 | 22 |
|
23 | 23 |
import com.vaadin.spring.annotation.SpringComponent; |
24 |
import com.vaadin.spring.annotation.UIScope;
|
|
24 |
import com.vaadin.spring.annotation.ViewScope;
|
|
25 | 25 |
|
26 | 26 |
import eu.etaxonomy.cdm.vaadin.event.AuthenticationAttemptEvent; |
27 | 27 |
import eu.etaxonomy.cdm.vaadin.event.AuthenticationSuccessEvent; |
... | ... | |
46 | 46 |
* |
47 | 47 |
*/ |
48 | 48 |
@SpringComponent |
49 |
@UIScope // DO NOT CHANGE !!! LoginPresenter must be in UIScope so that the LoginPresenter is available to all Views.
|
|
49 |
@ViewScope
|
|
50 | 50 |
public class LoginPresenter extends AbstractPresenter<LoginView> { |
51 | 51 |
|
52 | 52 |
private static final long serialVersionUID = 4020699735656994791L; |
Also available in: Unified diff
ref #7036 LoginView in View scope helps disposing this bean
it is no longer required to have it in the UIScope