You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Bruno Marti (JIRA)" <je...@portals.apache.org> on 2006/04/07 18:48:23 UTC
[jira] Created: (JS2-521) j2-admin: Styling of login error messages
(Login.jsp)
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
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
[jira] Assigned: (JS2-521) j2-admin: Styling of login error
messages (Login.jsp)
Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
[ http://issues.apache.org/jira/browse/JS2-521?page=all ]
Ate Douma reassigned JS2-521:
-----------------------------
Assign To: Ate Douma
> 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
[jira] Commented: (JS2-521) j2-admin: Styling of login error
messages (Login.jsp)
Posted by "Bruno Marti (JIRA)" <je...@portals.apache.org>.
[ http://issues.apache.org/jira/browse/JS2-521?page=comments#action_12373664 ]
Bruno Marti commented on JS2-521:
---------------------------------
My wish has a wrong jsp programming, here the better way (hope so):
<c:choose>
<c:when test="${not empty errorCode}">
<br>
<div class="portlet-msg-alert">
<fmt:message key="login.label.ErrorCode.${errorCode}"/>
</div>
<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>
<div class="portlet-msg-alert">
<fmt:message key="login.label.InvalidUsernameOrPassword"><fmt:param value="${retryCount}"/></fmt:message>
</div>
<br>
</c:if>
</c:otherwise>
</c:choose>
> 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
> 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
[jira] Commented: (JS2-521) j2-admin: Styling of login error
messages (Login.jsp)
Posted by "Bruno Marti (JIRA)" <je...@portals.apache.org>.
[ 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
[jira] Resolved: (JS2-521) j2-admin: Styling of login error
messages (Login.jsp)
Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
[ https://issues.apache.org/jira/browse/JS2-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ate Douma resolved JS2-521.
---------------------------
Resolution: Fixed
Fix Version/s: 2.1-dev
2.1
Implemented
> j2-admin: Styling of login error messages (Login.jsp)
> -----------------------------------------------------
>
> Key: JS2-521
> URL: https://issues.apache.org/jira/browse/JS2-521
> Project: Jetspeed 2
> Issue Type: Wish
> Components: Admin Portlets
> Affects Versions: 2.1-dev
> Environment: windows xp, tomcat 5.5.16, jetspeed-21-dev build from src
> Reporter: Bruno Marti
> Assigned To: Ate Douma
> Priority: Minor
> Fix For: 2.1, 2.1-dev
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org