portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Marti (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Commented: (JS2-521) j2-admin: Styling of login error messages (Login.jsp)
Date Thu, 25 May 2006 21:04:30 GMT
    [ http://issues.apache.org/jira/browse/JS2-521?page=comments#action_12413303 ] 

Bruno Marti commented on JS2-521:
---------------------------------

In addition, what's about the styling for the form (fields and button)?
Should we set there for e.x button class="portlet-form-button", for a input field "portlet-form-field"?


> j2-admin: Styling of login error messages (Login.jsp)
> -----------------------------------------------------
>
>          Key: JS2-521
>          URL: http://issues.apache.org/jira/browse/JS2-521
>      Project: Jetspeed 2
>         Type: Wish

>   Components: Admin Portlets
>     Versions: 2.1-dev
>  Environment: windows xp, tomcat 5.5.16, jetspeed-21-dev build from src
>     Reporter: Bruno Marti
>     Assignee: Ate Douma
>     Priority: Minor

>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message