Пример #1
0
  /**
   * ************************************* Adds the components to displays a login failure message.
   *
   * @param rBuilder The container build to create the components with
   * @return The failure message label
   */
  protected Label addFailureMessageComponents(ContainerBuilder<?> rBuilder) {
    String sError = EsocoGwtResources.INSTANCE.css().error();

    StyleData rErrorStyle = StyleData.DEFAULT.set(StyleData.WEB_ADDITIONAL_STYLES, sError);

    rBuilder.addLabel(StyleData.DEFAULT, "", null);

    return rBuilder.addLabel(rErrorStyle, "$lblLoginFailed", null);
  }
Пример #2
0
  /**
   * *************************************
   *
   * @see PanelManager#PanelManager(PanelManager, String)
   */
  public LoginPanelManager(
      PanelManager<?, ?> rParent,
      LoginHandler rLoginHandler,
      String sCookiePrefix,
      boolean bReauthenticate) {
    super(rParent, EsocoGwtResources.INSTANCE.css().gfLoginPanel());

    this.rLoginHandler = rLoginHandler;
    this.bReauthenticate = bReauthenticate;

    sUserCookie = sCookiePrefix + USER_NAME_COOKIE;
    sSessionCookie = sCookiePrefix + SESSION_ID_COOKIE;
  }