You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2006/04/28 22:38:04 UTC

svn commit: r397999 [2/2] - in /myfaces/tomahawk/trunk/sandbox: core/src/main/java/org/apache/myfaces/custom/collapsiblemenu/ core/src/main/resources-facesconfig/META-INF/ core/src/main/resources/org/apache/myfaces/custom/collapsiblemenu/ core/src/main...

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/charts.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/charts.jsp?rev=397999&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/charts.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/charts.jsp Fri Apr 28 13:38:01 2006
@@ -0,0 +1,70 @@
+<%@ page session="false" 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.apache.org/sandbox" prefix="s"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="../inc/head.inc" %>
+
+<body>
+
+<f:view>
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <s:collapsibleMenu left="0" top="85px" width="140px" height="85%">    
+      
+      <s:collapsiblePanel title="#{example_messages.panel_frequent_tasks}" >    
+          <s:collapsibleIcon url="../images/users.gif" title="#{example_messages.icon_users}" 
+                  action="#{collapsibleMenuBean.viewUsers}" actionListener="#{collapsibleMenuBean.actionListener}">
+              <f:param name="bogus1" value="bogus2"/>					              
+           </s:collapsibleIcon> 
+           <s:collapsibleIcon url="../images/mail.gif" title="#{example_messages.icon_mail}" action="mail"/>        
+      </s:collapsiblePanel>    
+
+      <s:collapsiblePanel title="#{example_messages.panel_administration}" >    
+        <s:collapsibleIcon url="../images/databases.gif" title="#{example_messages.icon_databases}" 
+                       action="#{collapsibleMenuBean.viewDatabases}">        
+          <f:param name="bogus1" value="bogus2"/>					              
+        </s:collapsibleIcon> 
+        <s:collapsibleIcon url="../images/servers.gif" title="#{example_messages.icon_servers}" action="servers"/>        
+      </s:collapsiblePanel>    
+
+      <s:collapsiblePanel title="#{example_messages.panel_reports}" displayed="true">    
+        <s:collapsibleIcon url="../images/statistics.gif" title="#{example_messages.icon_statistics}"
+                       action="#{collapsibleMenuBean.viewStatistics}">        
+          <f:param name="bogus1" value="bogus2"/>					              
+        </s:collapsibleIcon> 
+        <s:collapsibleIcon url="../images/charts.gif" title="#{example_messages.icon_charts}" action="charts"/>        
+      </s:collapsiblePanel>    
+
+    </s:collapsibleMenu>  
+    
+</f:view>
+
+      <div class="mainPane">
+  	CHARTS
+   </div>
+
+<%@include file="../inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/charts.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/charts.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/charts.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/databases.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/databases.jsp?rev=397999&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/databases.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/databases.jsp Fri Apr 28 13:38:01 2006
@@ -0,0 +1,57 @@
+<%@ page session="false" 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.apache.org/sandbox" prefix="s"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="../inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <h:form>    
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <s:collapsibleMenu left="0" top="85px" width="140px" height="85%">    
+	<s:dynamicCollapsibleMenu value="#{collapsibleMenuBean.dynamicCollapsibleMenu}" />      
+    </s:collapsibleMenu>  
+
+    <div class="mainPane">
+  	<h:outputText>DATABASES</h:outputText>
+        <f:verbatim><br/></f:verbatim>
+	<h:outputText>Test: When the page submits to itself, the same panel must be expanded</h:outputText>	
+        <f:verbatim><br/></f:verbatim>
+	<h:commandButton value="Submit"/>
+     </div>
+   </h:form>
+</f:view>
+
+<%@include file="../inc/page_footer.jsp" %>
+
+</body>
+
+</html>
+
+
+
+

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/databases.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/databases.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/databases.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/mail.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/mail.jsp?rev=397999&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/mail.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/mail.jsp Fri Apr 28 13:38:01 2006
@@ -0,0 +1,72 @@
+<%@ page session="false" 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.apache.org/sandbox" prefix="s"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="../inc/head.inc" %>
+
+<body>
+
+<f:view>
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <s:collapsibleMenu left="0" top="85px" width="140px" height="85%">    
+      
+      <s:collapsiblePanel title="#{example_messages.panel_frequent_tasks}" displayed="true">    
+          <s:collapsibleIcon url="../images/users.gif" title="#{example_messages.icon_users}" 
+                  action="#{collapsibleMenuBean.viewUsers}" actionListener="#{collapsibleMenuBean.actionListener}">
+              <f:param name="bogus1" value="bogus2"/>					              
+           </s:collapsibleIcon> 
+           <s:collapsibleIcon url="../images/mail.gif" title="#{example_messages.icon_mail}" action="mail"/>        
+      </s:collapsiblePanel>    
+
+      <s:collapsiblePanel title="#{example_messages.panel_administration}" >    
+        <s:collapsibleIcon url="../images/databases.gif" title="#{example_messages.icon_databases}" 
+                       action="#{collapsibleMenuBean.viewDatabases}">        
+          <f:param name="bogus1" value="bogus2"/>					              
+        </s:collapsibleIcon> 
+        <s:collapsibleIcon url="../images/servers.gif" title="#{example_messages.icon_servers}" action="servers"/>        
+      </s:collapsiblePanel>    
+
+      <s:collapsiblePanel title="#{example_messages.panel_reports}">    
+        <s:collapsibleIcon url="../images/statistics.gif" title="#{example_messages.icon_statistics}"
+                       action="#{collapsibleMenuBean.viewStatistics}">        
+          <f:param name="bogus1" value="bogus2"/>					              
+        </s:collapsibleIcon> 
+        <s:collapsibleIcon url="../images/charts.gif" title="#{example_messages.icon_charts}" action="charts"/>        
+      </s:collapsiblePanel>    
+
+    </s:collapsibleMenu>  
+
+    
+    
+</f:view>
+
+      <div class="mainPane">
+  	MAIL
+   </div>
+
+<%@include file="../inc/page_footer.jsp" %>
+
+</body>
+
+</html>

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/mail.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/mail.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/mail.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/servers.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/servers.jsp?rev=397999&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/servers.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/servers.jsp Fri Apr 28 13:38:01 2006
@@ -0,0 +1,81 @@
+<%@ page session="false" 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.apache.org/sandbox" prefix="s"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="../inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <h:form>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <s:collapsibleMenu left="0" top="85px" width="140px" height="85%">    
+      
+      <s:collapsiblePanel title="#{example_messages.panel_frequent_tasks}" >    
+          <s:collapsibleIcon url="../images/users.gif" title="#{example_messages.icon_users}" 
+                  action="#{collapsibleMenuBean.viewUsers}" actionListener="#{collapsibleMenuBean.actionListener}">
+              <f:param name="bogus1" value="bogus2"/>					              
+           </s:collapsibleIcon> 
+           <s:collapsibleIcon url="../images/mail.gif" title="#{example_messages.icon_mail}" action="mail"/>        
+      </s:collapsiblePanel>    
+
+      <s:collapsiblePanel title="#{example_messages.panel_administration}" displayed="true">    
+        <s:collapsibleIcon url="../images/databases.gif" title="#{example_messages.icon_databases}" 
+                       action="#{collapsibleMenuBean.viewDatabases}">        
+          <f:param name="bogus1" value="bogus2"/>					              
+        </s:collapsibleIcon> 
+        <s:collapsibleIcon url="../images/servers.gif" title="#{example_messages.icon_servers}" action="servers"/>        
+      </s:collapsiblePanel>    
+
+      <s:collapsiblePanel title="#{example_messages.panel_reports}">    
+        <s:collapsibleIcon url="../images/statistics.gif" title="#{example_messages.icon_statistics}"
+                       action="#{collapsibleMenuBean.viewStatistics}">        
+          <f:param name="bogus1" value="bogus2"/>					              
+        </s:collapsibleIcon> 
+        <s:collapsibleIcon url="../images/charts.gif" title="#{example_messages.icon_charts}" action="charts"/>        
+      </s:collapsiblePanel>    
+
+    </s:collapsibleMenu>  
+    
+    <div class="mainPane">
+  	<h:outputText>SERVERS</h:outputText>
+        <f:verbatim><br/></f:verbatim>
+	<h:outputText>Test: When the page submits to itself, the same panel must be expanded</h:outputText>	
+        <f:verbatim><br/></f:verbatim>
+	<h:commandButton value="Submit"/>
+     </div>
+   </h:form>
+</f:view>
+
+
+<%@include file="../inc/page_footer.jsp" %>
+
+</body>
+
+</html>
+
+
+

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/servers.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/servers.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/servers.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/statistics.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/statistics.jsp?rev=397999&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/statistics.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/statistics.jsp Fri Apr 28 13:38:01 2006
@@ -0,0 +1,50 @@
+<%@ page session="false" 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.apache.org/sandbox" prefix="s"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="../inc/head.inc" %>
+
+<body>
+
+<f:view>
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <s:collapsibleMenu left="0" top="85px" width="140px" height="85%">    
+	<s:dynamicCollapsibleMenu value="#{collapsibleMenuBean.dynamicCollapsibleMenu}" />      
+    </s:collapsibleMenu>  
+    
+</f:view>
+
+    <div class="mainPane">
+  	STATISTICS
+   </div>
+
+<%@include file="../inc/page_footer.jsp" %>
+
+</body>
+
+</html>
+
+
+
+

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/statistics.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/statistics.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/statistics.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/users.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/users.jsp?rev=397999&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/users.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/users.jsp Fri Apr 28 13:38:01 2006
@@ -0,0 +1,61 @@
+<%@ page session="false" 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.apache.org/sandbox" prefix="s"%>
+<html>
+
+<!--
+/*
+ * 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.
+ */
+//-->
+
+<%@include file="../inc/head.inc" %>
+
+<body>
+
+<f:view>
+
+    <h:form>
+
+    <f:loadBundle basename="org.apache.myfaces.examples.resource.example_messages" var="example_messages"/>
+
+    <s:collapsibleMenu left="0" top="85px" width="140px" height="85%">    
+	<s:dynamicCollapsibleMenu value="#{collapsibleMenuBean.dynamicCollapsibleMenu}" />      
+    </s:collapsibleMenu>  
+    
+    <div class="mainPane">
+  	<h:outputText>USERS</h:outputText>
+        <f:verbatim><br/></f:verbatim>
+	<h:outputText>Test: When the page submits to itself, the same panel must be expanded</h:outputText>	
+        <f:verbatim><br/></f:verbatim>
+	<h:commandButton value="Submit"/>
+     </div>
+   </h:form>
+</f:view>
+
+    <div class="mainPane">
+  	USERS
+   </div>
+
+<%@include file="../inc/page_footer.jsp" %>
+
+</body>
+
+</html>
+
+
+
+

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/users.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/users.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/collapsiblemenu/users.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp?rev=397999&r1=397998&r2=397999&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp Fri Apr 28 13:38:01 2006
@@ -82,6 +82,16 @@
                <h:outputLink value="ifMessage.jsf"><f:verbatim>ifMessage - renders its children only if there is a message in the FacesContext for the specified component(s)</f:verbatim></h:outputLink>
             </h:panelGrid>
             
+            <h:outputText value="Collapsible Menu"/>
+            <h:panelGrid style="padding-left:25px">
+                <h:outputLink value="collapsiblemenu/mail.jsf" >
+                <f:verbatim>Static JSP version</f:verbatim>
+            </h:outputLink>
+            <h:outputLink value="collapsiblemenu/users.jsf">
+                <f:verbatim>Dynamic Version</f:verbatim>
+            </h:outputLink>
+            </h:panelGrid>
+
             <h:outputText value="FishEye Navigation"/>
             <h:panelGrid style="padding-left:25px">
                <h:outputLink value="fisheye.jsf"><f:verbatim>fishEyeNavigationMenu - the Dojo Toolkit FishEye widget</f:verbatim></h:outputLink>