portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view pam-detail.jsp
Date Thu, 02 Sep 2004 22:04:06 GMT
jford       2004/09/02 15:04:06

  Modified:    applications/pam/src/webapp/WEB-INF/view pam-detail.jsp
  Log:
  Added the ability to select a portlet from the application
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/pam-detail.jsp
  
  Index: pam-detail.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/pam-detail.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- pam-detail.jsp	6 Jul 2004 16:11:45 -0000	1.2
  +++ pam-detail.jsp	2 Sep 2004 22:04:05 -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.
--%>
<%@ page language="java" import="javax.portlet.*, org.apache.jetspeed.portlets.pam.PortletApplicationBean"
session="true" %>
<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
<%@
taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<portlet:defineObjects/>
<h2>Portlet
Application Detail</h2>

<%
	String name = "N/A";
	String version = "0.0";
	PortletApplicationBean
pa = (PortletApplicationBean)renderRequest.getAttribute("portletApplication");
	if (null !=
pa)
	{
		name = pa.getName();
		version = pa.getVersion();
	}
		
%>


app.name = <%=
name %><br/>
app.version = <%= version %>

<p>TODO: Details</p>
  \ 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.
--%>
<%@ page language="java" import="javax.portlet.*, java.util.*,
org.apache.jetspeed.portlets.pam.PortletApplicationBean, org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite"
session="true" %>
<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
<%@
taglib uri="http://java.sun.com/jstl/core" prefix="c" %>


<portlet:defineObjects/>
<h2>Portlet
Application Detail</h2>

<c:set var="pa" value="${requestScope.portletApplication}"
/>
<c:set var="name" value="${pa.name}" />
<c:set var="version" value="${pa.version}"
/>

app.name = <c:out value="${name}"/><br />
app.version = <c:out value="${version}"/>

<p>TODO:
Details</p>

<div id="portlets">

	<c:forEach var="portletDef" items="${pa.portletDefinitions}">
	<c:set var="pdefName" value="${portletDef.name}"/>
		
		<%--We must do this since
portlet taglib doesn't support expressions--%>
		<% String pdefName = (String) pageContext.getAttribute("pdefName");
%>
		<portlet:actionURL var="select_portlet_link" >
			<portlet:param name="select_portlet"
value="<%= pdefName %>" />
		</portlet:actionURL>
		
	
		<a href="<c:out
value="${select_portlet_link}"/>">
			<c:out value="${portletDef.name}" /><br
/>
		</a>
	</c:forEach>
</div>

<br />
<br />

<div id="selectedPortlet"
class="">
	<span class="portlet-section-header">Selected Portlet</span>
	<c:set
var="pdef" value="${requestScope.portletDefinition}"/>
	<c:out value="${pdef.name}"/>
</div>
  \ No newline at end of file
  
  
  

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


Mime
View raw message