taylor 2004/09/15 15:46:52
Added: applications/pam/src/webapp/WEB-INF/view site-browser.jsp
profiler-admin.jsp
Log:
rough start on some admin portlets
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.1
jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/site-browser.jsp
Index: site-browser.jsp
===================================================================
<%--
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 import="net.sourceforge.myfaces.custom.tree.DefaultMutableTreeNode,
net.sourceforge.myfaces.custom.tree.model.DefaultTreeModel"%>
<%@ page session="true" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.sourceforge.net/tld/myfaces_ext_0_9.tld" prefix="x"%>
<!--
/*
* 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.
*/
//-->
<%
if (pageContext.getAttribute("treeModel", PageContext.SESSION_SCOPE) == null) {
DefaultMutableTreeNode root = new DefaultMutableTreeNode("XY");
DefaultMutableTreeNode a = new DefaultMutableTreeNode("A");
root.insert(a);
DefaultMutableTreeNode b = new DefaultMutableTreeNode("B");
root.insert(b);
DefaultMutableTreeNode c = new DefaultMutableTreeNode("C");
root.insert(c);
DefaultMutableTreeNode node = new DefaultMutableTreeNode("a1");
a.insert(node);
node = new DefaultMutableTreeNode("a2 ");
a.insert(node);
node = new DefaultMutableTreeNode("b ");
b.insert(node);
a = node;
node = new DefaultMutableTreeNode("x1");
a.insert(node);
node = new DefaultMutableTreeNode("x2");
a.insert(node);
pageContext.setAttribute("treeModel", new DefaultTreeModel(root),
PageContext.SESSION_SCOPE);
}
%>
<f:view>
<x:panelLayout id="page">
<f:facet name="body">
<f:verbatim><h2>Here is a tree?</h2></f:verbatim>
<h:panelGroup id="body">
<x:tree id="tree" value="#{treeModel}"
iconLine="/images/tree/line.gif"
iconNoline="/images/tree/noline.gif"
iconChild="/images/tree/folder.gif"
iconChildFirst="/images/tree/line_first.gif"
iconChildMiddle="/images/tree/line_middle.gif"
iconChildLast="/images/tree/line_last.gif"
iconNodeOpen="/images/tree/node_open.gif"
iconNodeOpenFirst="/images/tree/node_open_first.gif"
iconNodeOpenMiddle="/images/tree/node_open_middle.gif"
iconNodeOpenLast="/images/tree/node_open_last.gif"
iconNodeClose="/images/tree/node_close.gif"
iconNodeCloseFirst="/images/tree/node_close_first.gif"
iconNodeCloseMiddle="/images/tree/node_close_middle.gif"
iconNodeCloseLast="/images/tree/node_close_last.gif"
styleClass="tree"
nodeClass="treenode"
selectedNodeClass="treenodeSelected"
expandRoot="true">
</x:tree>
<f:verbatim><br></f:verbatim>
</h:panelGroup>
</f:facet>
</x:panelLayout>
</f:view>
1.1
jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/profiler-admin.jsp
Index: profiler-admin.jsp
===================================================================
<%@ taglib uri='/WEB-INF/portlet.tld' prefix='portlet'%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:view>
<h:dataTable value="#{tableData.names}" var="name">
<h:column>
<h:outputText value='#{name.last}'/>
<f:verbatim>,</f:verbatim>
</h:column>
<h:column>
<h:outputText value='#{name.first}'/>
</h:column>
</h:dataTable>
</f:view>
<p>end</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]