myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jl...@apache.org
Subject svn commit: r392231 - in /myfaces/tomahawk/trunk/sandbox/examples/src/main: java/org/apache/myfaces/examples/fisheye/ webapp/ webapp/WEB-INF/ webapp/dojo/ webapp/images/
Date Fri, 07 Apr 2006 09:40:11 GMT
Author: jlust
Date: Fri Apr  7 02:40:09 2006
New Revision: 392231

URL: http://svn.apache.org/viewcvs?rev=392231&view=rev
Log:
Renamed the FishEyeList component to FishEyeNavigationMenu, and added the ability to render
UINavigationMenuItem children.
There is still a problem with the decode method of the renderer though: the actions and actionListeners
are not being invoked.
I also added the example from the Dojo Toolkit.

Added:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/fisheye/
    myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/fisheye/FishEyeHandler.java
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_browser.png   (with
props)
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_calendar.png   (with
props)
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_email.png   (with
props)
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_texteditor.png   (with
props)
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_update.png   (with
props)
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_users.png   (with
props)
Removed:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/fisheyetest.jsp
Modified:
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/home.jsp

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/fisheye/FishEyeHandler.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/fisheye/FishEyeHandler.java?rev=392231&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/fisheye/FishEyeHandler.java
(added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/java/org/apache/myfaces/examples/fisheye/FishEyeHandler.java
Fri Apr  7 02:40:09 2006
@@ -0,0 +1,72 @@
+/*
+ * Copyright 2006 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.
+ */
+package org.apache.myfaces.examples.fisheye;
+
+import java.io.Serializable;
+
+import javax.faces.event.ActionEvent;
+
+/**
+ * Handler for the FishEye example
+ * 
+ * @author Jurgen Lust (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+public class FishEyeHandler implements Serializable
+{
+    private String _actionName;
+
+    public FishEyeHandler()
+    {
+        this._actionName = "please click on a menu item";
+    }
+
+    public void calendarClicked(ActionEvent event)
+    {
+        this._actionName = "Calendar item was clicked";
+    }
+
+    public void emailClicked(ActionEvent event)
+    {
+        this._actionName = "Email item was clicked";
+    }
+
+    public String getActionName()
+    {
+        return _actionName;
+    }
+
+    public void textEditorClicked(ActionEvent event)
+    {
+        this._actionName = "Text Editor item was clicked";
+    }
+
+    public void updateClicked(ActionEvent event)
+    {
+        this._actionName = "Software Update item was clicked";
+    }
+
+    public void usersClicked(ActionEvent event)
+    {
+        this._actionName = "Users item was clicked";
+    }
+
+    public void webBrowserClicked(ActionEvent event)
+    {
+        System.out.println("Web Browser clicked");
+        this._actionName = "Web browser item was clicked";
+    }
+}

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml?rev=392231&r1=392230&r2=392231&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/WEB-INF/examples-config.xml Fri
Apr  7 02:40:09 2006
@@ -554,6 +554,12 @@
 		<managed-bean-class>org.apache.myfaces.examples.dateTimeConverter.DateTimeConverterBean</managed-bean-class>
 		<managed-bean-scope>session</managed-bean-scope>
 	</managed-bean>
+	
+	<managed-bean>
+		<managed-bean-name>fisheye</managed-bean-name>
+		<managed-bean-class>org.apache.myfaces.examples.fisheye.FishEyeHandler</managed-bean-class>
+		<managed-bean-scope>request</managed-bean-scope>
+	</managed-bean>
 
 
     <!-- navigation rules -->

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp?rev=392231&view=auto
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp (added)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp Fri Apr  7 02:40:09
2006
@@ -0,0 +1,89 @@
+<%@ 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/tomahawk" prefix="t"%>
+<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
+
+<!--
+/*
+ * Copyright 2006 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.
+ */
+//-->
+
+<html>
+<head>
+<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
+<title>MyFaces - the free JSF Implementation</title>
+<link rel="stylesheet" type="text/css" href="css/basic.css" />
+<style>
+
+.dojoHtmlFisheyeListBar {
+	margin: 0 auto;
+	text-align: center;
+}
+
+.outerbar {
+	background-color: #666;
+	text-align: center;
+	position: absolute;
+	left: 0px;
+	top: 0px;
+	width: 100%;
+}
+
+body {
+	font-family: Arial, Helvetica, sans-serif;
+	padding: 0;
+	margin: 0;
+}
+
+.page {
+	padding: 60px 20px 20px 20px;
+}
+
+</style>
+</head>
+<body>
+<f:view>
+	<t:div styleClass="outerbar">
+		<s:fishEyeNavigationMenu itemWidth="50" itemHeight="50" itemMaxWidth="200"
+			itemMaxHeight="200" orientation="horizontal" effectUnits="2"
+			itemPadding="10" attachEdge="top" labelEdge="bottom">
+
+			<t:navigationMenuItem icon="images/icon_browser.png"
+				itemLabel="Web Browser"
+				actionListener="#{fisheye.webBrowserClicked}" />
+			<t:navigationMenuItem icon="images/icon_calendar.png"
+				itemLabel="Calendar" actionListener="#{fisheye.calendarClicked}" />
+			<t:navigationMenuItem icon="images/icon_email.png" itemLabel="Email"
+				actionListener="#{fisheye.emailClicked}" />
+			<t:navigationMenuItem icon="images/icon_texteditor.png"
+				itemLabel="Text Editor"
+				actionListener="#{fisheye.textEditorClicked}" />
+			<t:navigationMenuItem icon="images/icon_update.png"
+				itemLabel="Software Update"
+				actionListener="#{fisheye.updateClicked}" />
+			<t:navigationMenuItem icon="images/icon_users.png" itemLabel="Users"
+				actionListener="#{fisheye.usersClicked}" />
+
+		</s:fishEyeNavigationMenu>
+	</t:div>
+
+	<t:div styleClass="page">
+		<t:outputText value="#{fisheye.actionName}" />
+		<%@include file="../inc/page_footer.jsp"%>
+	</t:div>
+</f:view>
+</body>
+</html>

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=392231&r1=392230&r2=392231&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  7 02:40:09 2006
@@ -78,6 +78,11 @@
             <h:panelGrid style="padding-left:25px">
                <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="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>
+            </h:panelGrid>
 
             <h:outputText value="Miscellaneous"/>
             <h:panelGrid style="padding-left:25px">

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_browser.png
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_browser.png?rev=392231&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_browser.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_calendar.png
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_calendar.png?rev=392231&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_calendar.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_email.png
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_email.png?rev=392231&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_email.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_texteditor.png
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_texteditor.png?rev=392231&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_texteditor.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_update.png
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_update.png?rev=392231&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_update.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_users.png
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_users.png?rev=392231&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/images/icon_users.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message