[jboss-user] [JBoss Portal] - Re: Portal 2.6.6 Login Dialog Prboem in IE 6 and IE 7

Tommy_T do-not-reply at jboss.com
Fri Feb 20 03:08:05 EST 2009


When this was fixed for 2.6.6, it was propably not updated in the 2.7.x-trunk. 
The login screen is not displayed correctly in Internet Explorer for 2.7.x.
The proposed solution below have been tested on 2.7.1 and renders the login screen properly. 
Button values and label data could be replaced with strings from a resource bundle instead (as default).

Edit the div.login-container div.login-content css property in 
jboss-portal.sar\portal-core.war\css\login.css

div.login-container div.login-content {
  |    font-family: Verdana, Arial, Helvetica, Sans-Serif, sans-serif;
  |    font-size: 11px;
  |    width: 255px;
  |    border: 1px solid #CFCFCF;
  |    background-color:white;
  |    padding: 0px 0 0 0;
  |    text-align: right;
  | }

Set appropriate width in
jboss-portal.sar\portal-server.war\login.jsp

       <form method="post" action="<%= response.encodeURL("j_security_check") %>" name="loginform" id="loginForm"
  |             target="_parent">
  |          <div class="form-field">
  |             <label for="j_username">Username</label>
  |             <input type="text" style="width:155px;" name="j_username" id="j_username" value=""/>
  |          </div>
  |          <div class="form-field bottom-field">
  |             <label for="j_password">Password</label>
  |             <input type="password" style="width:155px;" name="j_password" id="j_password" value=""/>
  |          </div>
  |          <input style="width:75px;<%=(request.getParameter("loginheight") != null ? "" : "display:none")%>;" 
  | type="button" name="cancel" value="Cancel" class="cancel-button" onclick="window.parent.hideContentModal('login-modal');"/>
  |          <input style="width:75px;<%=(request.getParameter("loginheight") != null ? "" : "right:10px")%>;" 
  | type="submit" name="login" value="Login" class="login-button"/>
  |       </form>

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211705#4211705

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211705



More information about the jboss-user mailing list