weaver      2004/09/10 14:55:51

  Modified:    applications/pam/src/webapp/WEB-INF/view tabs.jsp
  Log:
  Added logic so that selected tabs do not have links.
  
  Revision  Changes    Path
  1.3       +1 -1      
jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/tabs.jsp
  
  Index: tabs.jsp
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/tabs.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- tabs.jsp  9 Sep 2004 22:25:02 -0000       1.2
  +++ tabs.jsp  10 Sep 2004 21:55:51 -0000      1.3
  @@ -1 +1 @@
  -<%--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
        <c:forEach var="tab" items="${tab_items}">
                <td <c:if test="${tab == currentTab}"> class="LTabLeft" </c:if>
                    <c:if test="${tab != currentTab}"> class="LTabLeftLow" </c:if>
                     style="font-size:1pt;" nowrap="true">
                     &nbsp;
                </td>
            <td <c:if test="${tab == currentTab}"> class="LTab" </c:if>
                <c:if test="${tab != currentTab}"> class="LTabLow" </c:if>
                 align="center" valign="middle" nowrap="true">
                                     
                 <% 
                                String tabid = 
((TabBean)pageContext.getAttribute("tab")).getId(); 
                                String paramName = 
(String)pageContext.getAttribute("url_param_name");
                 %>
                 <portlet:actionURL var="select_portlet_tab_link" >
                     <portlet:param name="<%= paramName %>" value="<%= tabid %>" />
                 </portlet:actionURL>
                                     
                <a href="<c:out value="${select_portlet_tab_link}"/>">
                                <fmt:message>pam.details.tabs.<c:out 
value="${tab.id}"/></fmt:message>
                </a>
            </td>
            <td <c:if test="${tab == currentTab}"> class="LTabRight" </c:if>
                <c:if test="${tab != currentTab}"> class="LTabRightLow" </c:if> 
                style="font-size:1pt;" nowrap="true">
                &nbsp;
            </td>
        </c:forEach>
  </tr>
</table>
  \ No newline at end of file
  +<%--
Copyright 2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
        <c:forEach var="tab" items="${tab_items}">
                <td <c:if test="${tab == currentTab}"> class="LTabLeft" </c:if>
                    <c:if test="${tab != currentTab}"> class="LTabLeftLow" </c:if>
                     style="font-size:1pt;" nowrap="true">
                     &nbsp;
                </td>
            <td <c:if test="${tab == currentTab}"> class="LTab" </c:if>
                <c:if test="${tab != currentTab}"> class="LTabLow" </c:if>
                 align="center" valign="middle" nowrap="true">
                                     
                 <% 
                                String tabid = 
((TabBean)pageContext.getAttribute("tab")).getId(); 
                                String paramName = 
(String)pageContext.getAttribute("url_param_name");
                 %>
                 
                 <c:choose>
                  <c:when test="${tab != currentTab}">
                   <portlet:actionURL var="select_portlet_tab_link" >
                       <portlet:param name="<%= paramName %>" value="<%= tabid %>" />
                   </portlet:actionURL>
                                             
                   <a href="<c:out value="${select_portlet_tab_link}"/>">
                                 <fmt:message>pam.details.tabs.<c:out 
value="${tab.id}"/></fmt:message>
                   </a>
                  </c:when>
                  <c:otherwise>
                    <fmt:message>pam.details.tabs.<c:out 
value="${tab.id}"/></fmt:message>
                  </c:otherwise>  
                </c:choose>
            </td>
            <td <c:if test="${tab == currentTab}"> class="LTabRight" </c:if>
                <c:if test="${tab != currentTab}"> class="LTabRightLow" </c:if> 
                style="font-size:1pt;" nowrap="true">
                &nbsp;
            </td>
        </c:forEach>
  </tr>
</table>
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to