Jetspeed 2
  1. Jetspeed 2
  2. JS2-521

j2-admin: Styling of login error messages (Login.jsp)

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1-dev
    • Fix Version/s: 2.1-dev, 2.1
    • Component/s: Admin Portlets
    • Labels:
      None
    • Environment:
      windows xp, tomcat 5.5.16, jetspeed-21-dev build from src

      Description

      I've creaated a new sample portal (myportal) from source.
      Is it possible to add more styling to the admin-portlets?
      For example in login.jsp:

      actual code:
      <c:choose>
      <c:when test="$

      {not empty errorCode}">
      <br>
      <i><fmt:message key="login.label.ErrorCode.${errorCode}"/></i>
      <br>
      </c:when>
      <c:otherwise>
      <c_rt:set var="retryCount" value="<%=((RequestContext)request.getAttribute(RequestContext.REQUEST_PORTALENV)).getSessionAttribute(LoginConstants.RETRYCOUNT)%>"/>
      <c:if test="${not empty retryCount}">
      <br>
      <i><fmt:message key="login.label.InvalidUsernameOrPassword"><fmt:param value="${retryCount}"/></fmt:message></i>
      <br>
      </c:if>
      </c:otherwise>
      </c:choose>

      my wish (formatted error-msg with portlet-msg style):
      <div class="portlet-msg-alert">
      <c:choose>
      <c:when test="${not empty errorCode}

      ">
      <fmt:message key="login.label.ErrorCode.$

      {errorCode}

      "/>
      </c:when>
      <c:otherwise>
      <c_rt:set var="retryCount" value="<%=((RequestContext)request.getAttribute(RequestContext.REQUEST_PORTALENV)).getSessionAttribute(LoginConstants.RETRYCOUNT)%>"/>
      <c:if test="$

      {not empty retryCount}

      ">
      <fmt:message key="login.label.InvalidUsernameOrPassword"><fmt:param value="$

      {retryCount}

      "/></fmt:message>
      </c:if>
      </c:otherwise>
      </c:choose>
      </div>

      Or, can I override such sites in a way like I can override (example default-page.psml) with my own styles

        Activity

        Bruno Marti created issue -
        Ate Douma made changes -
        Field Original Value New Value
        Assignee Ate Douma [ adouma ]
        Ate Douma made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 2.1 [ 12310617 ]
        Fix Version/s 2.1-dev [ 12310686 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Ate Douma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ate Douma
            Reporter:
            Bruno Marti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development