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 jf...@apache.org on 2004/07/02 05:56:44 UTC

cvs commit: jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view pam-browser.jsp

jford       2004/07/01 20:56:44

  Modified:    applications/pam/src/webapp/WEB-INF/view pam-browser.jsp
  Log:
  Clean up jsp
  
  Revision  Changes    Path
  1.3       +1 -5      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- pam-browser.jsp	30 Jun 2004 03:11:05 -0000	1.2
  +++ pam-browser.jsp	2 Jul 2004 03:56:44 -0000	1.3
  @@ -1,5 +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.*, 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>

<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"
      --%>
  -
  +<%--
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>

<portlet:actionURL windowState="normal" portletMode="view"  var="nodeLink" >
	<portlet:param name="node" value="${name}" />
</portlet:actionURL>

<pam:tree tree="j2_tree" images="/pam/images" scope="portlet_request"
          action="<%= nodeLink %>"
  />
  
  <%--
  style="tree-control"
        styleSelected="tree-control-selected"
      styleUnselected="tree-control-unselected"
      --%>

  \ 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