Skip to content

Commit

Permalink
Don't extend SimplePanel for SecurityRolesConstraintPage, avoiding us…
Browse files Browse the repository at this point in the history
…er issues when injecting SimplePanel.
  • Loading branch information
mbarkley committed Apr 14, 2016
1 parent dea19e2 commit d67f140
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@
import org.jboss.errai.bus.client.framework.ClientMessageBusImpl;
import org.jboss.errai.common.client.api.Caller;
import org.jboss.errai.common.client.api.ErrorCallback;
import org.jboss.errai.common.client.api.IsElement;
import org.jboss.errai.common.client.api.RemoteCallback;
import org.jboss.errai.common.client.api.extension.InitVotes;
import org.jboss.errai.common.client.dom.Div;
import org.jboss.errai.common.client.dom.HTMLElement;
import org.jboss.errai.ioc.client.api.EntryPoint;
import org.jboss.errai.security.client.local.api.SecurityContext;
import org.jboss.errai.security.client.local.spi.ActiveUserCache;
Expand All @@ -48,7 +51,6 @@

import com.google.common.collect.ImmutableListMultimap;
import com.google.common.collect.ImmutableMultimap;
import com.google.gwt.user.client.ui.SimplePanel;

/**
* @author Max Barkley <[email protected]>
Expand All @@ -63,11 +65,17 @@ public class SecurityContextImpl implements SecurityContext {
* performance reasons, this is preferable to scanning the whole classpath.
*/
@Page
public static class SecurityRolesConstraintPage extends SimplePanel {
public static class SecurityRolesConstraintPage implements IsElement {
@SuppressWarnings("unused")
@Inject private TransitionToRole<LoginPage> loginTransition;
@SuppressWarnings("unused")
@Inject private TransitionToRole<SecurityError> securityErrorTransition;
@Inject private Div element;

@Override
public HTMLElement getElement() {
return element;
}
}

@Inject
Expand Down

0 comments on commit d67f140

Please sign in to comment.