jford 2004/06/29 20:11:05
Modified: applications/pam/src/webapp/WEB-INF/view pam-browser.jsp
Log:
Added tree control menu to PAM browser
Revision Changes Path
1.2 +2 -2
jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/pam-browser.jsp
Index: pam-browser.jsp
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/pam-browser.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pam-browser.jsp 6 Jun 2004 01:44:55 -0000 1.1
+++ pam-browser.jsp 30 Jun 2004 03:11:05 -0000 1.2
@@ -1,5 +1,5 @@
-<%--
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.List, java.util.Iterator,
org.apache.jetspeed.om.common.portlet.MutablePortletApplication" session="true" %>
<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<portlet:defineObjects/>
+<%--
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.List, java.util.Iterator,
org.apache.jetspeed.om.common.portlet.MutablePortletApplication" session="true" %>
<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/pam.tld" prefix="pam" %>
<portlet:defineObjects/>
<p>This page was invoked from a LOCAL portlet app</P>
<a href='/snipet.html'>somelink</a>
<p>renderURL</p>
<p>
<portlet:renderURL windowState="normal" portletMode="view" var="myView">
<portlet:param name="invokeMsg" value="No action just render" />
</portlet:renderURL>
<a href="<c:out value="${myView}" />">View!</a>
</p>
<p>"<c:out value="${myView}" />"</p>
<p>
<a href="<portlet:actionURL windowState="normal" portletMode="view" />">My
Action!!!</a>
<a href="<portlet:actionURL windowState="normal" portletMode="view" />">Invoke My
Action!!!</a>
</p>
<br>
-<table>
<%
List apps = (List) renderRequest.getAttribute("apps");
for (Iterator i = apps.iterator(); i.hasNext();)
{
MutablePortletApplication pa = (MutablePortletApplication) i.next();
out.println("<tr><td>" + pa.getName() + "</td>");
out.println("<td>" + pa.getDescription() + "</td></tr>");
}
%>
</table>
+<table>
<%
List apps = (List) renderRequest.getAttribute("apps");
for (Iterator i = apps.iterator(); i.hasNext();)
{
MutablePortletApplication pa = (MutablePortletApplication) i.next();
out.println("<tr><td>" + pa.getName() + "</td>");
out.println("<td>" + pa.getDescription() + "</td></tr>");
}
%>
</table>
<portlet:actionURL windowState="normal" portletMode="view" var="nodeLink" >
<portlet:param name="node" value="${name}" />
</portlet:actionURL>
<c:out value="${nodeLink}"/>
<pam:tree tree="j2_tree" images="/pam/images"
action="<%= nodeLink %>"
/>
<%--
style="tree-control"
styleSelected="tree-control-selected"
styleUnselected="tree-control-unselected"
--%>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]