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 ta...@apache.org on 2004/07/06 18:11:45 UTC

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

taylor      2004/07/06 09:11:45

  Modified:    applications/pam/src/webapp/WEB-INF/view pam-browser.jsp
                        pam-detail.jsp
  Log:
  Start of inter-portlet communication between PAM Browser and Details. Needs some more prototyping and abstraction.
  
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.4       +1 -1      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- pam-browser.jsp	2 Jul 2004 03:56:44 -0000	1.3
  +++ pam-browser.jsp	6 Jul 2004 16:11:45 -0000	1.4
  @@ -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.*, 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
  +<%--
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/>
<h2>Portlet Application Manager</h2>
<h3>Application Tree View</h3>
<portlet:actionURL 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
  
  
  
  1.2       +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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- pam-detail.jsp	6 Jun 2004 01:44:55 -0000	1.1
  +++ pam-detail.jsp	6 Jul 2004 16:11:45 -0000	1.2
  @@ -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.*, java.util.List" session="true" %>
<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<portlet:defineObjects/>
<br>
<p>TODO: write me</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.*, 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
  
  
  

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