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 site-browser.jsp
Date Thu, 16 Sep 2004 21:29:48 GMT
jford       2004/09/16 14:29:48

  Modified:    applications/pam/src/webapp/WEB-INF/view site-browser.jsp
  Log:
  Switched to tree control
  
  Revision  Changes    Path
  1.2       +18 -64    jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/site-browser.jsp
  
  Index: site-browser.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/pam/src/webapp/WEB-INF/view/site-browser.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- site-browser.jsp	15 Sep 2004 22:46:52 -0000	1.1
  +++ site-browser.jsp	16 Sep 2004 21:29:48 -0000	1.2
  @@ -10,12 +10,10 @@
   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"%>
  +<%@ 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" %>
   
   <!--
   /*
  @@ -35,64 +33,20 @@
    */
   //-->
   
  -<%
  -   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);
  +<portlet:defineObjects/>
  +<h3>Site 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"
   
  -      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>
  +	--%>
  \ 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