Author: vbaranov
Date: 2008-03-06 05:30:56 -0500 (Thu, 06 Mar 2008)
New Revision: 6584
Added:
trunk/samples/panelmenu-sample/src/main/java/org/richfaces/MenuBean.java
trunk/samples/panelmenu-sample/src/main/webapp/pages/pageFalse.jsp
trunk/samples/panelmenu-sample/src/main/webapp/pages/pageTrue.jsp
Modified:
trunk/samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml
Log:
Modified test sample for
http://jira.jboss.com/jira/browse/RF-2192
Added: trunk/samples/panelmenu-sample/src/main/java/org/richfaces/MenuBean.java
===================================================================
--- trunk/samples/panelmenu-sample/src/main/java/org/richfaces/MenuBean.java
(rev 0)
+++ trunk/samples/panelmenu-sample/src/main/java/org/richfaces/MenuBean.java 2008-03-06
10:30:56 UTC (rev 6584)
@@ -0,0 +1,60 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces;
+
+import javax.faces.event.ActionEvent;
+
+/**
+ * Backing bean for "\pages\pageFalse.jsp" and "\pages\pageTrue.jsp"
+ * to test {@link
http://jira.jboss.com/jira/browse/RF-2192} issue.
+ *
+ * @author vbaranov
+ */
+public class MenuBean {
+
+ /**
+ * ActionListener method. Prints a string to "System.out" when invoked.
+ * @param event - ActionEvent
+ */
+ public void item1Clicked(ActionEvent event)
+ {
+ System.out.println("menu item 1 clicked");
+ }
+
+ /**
+ * ActionListener method. Prints a string to "System.out" when invoked.
+ * @param event - ActionEvent
+ */
+ public void item2Clicked(ActionEvent event)
+ {
+ System.out.println("menu item 2 clicked");
+ }
+
+ /**
+ * ActionListener method. Prints a string to "System.out" when invoked.
+ * @param event - ActionEvent
+ */
+ public void item3Clicked(ActionEvent event)
+ {
+ System.out.println("menu item 3 clicked");
+ }
+}
Property changes on:
trunk/samples/panelmenu-sample/src/main/java/org/richfaces/MenuBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-03-06
10:21:19 UTC (rev 6583)
+++ trunk/samples/panelmenu-sample/src/main/webapp/WEB-INF/faces-config.xml 2008-03-06
10:30:56 UTC (rev 6584)
@@ -12,6 +12,11 @@
<managed-bean-class>org.richfaces.Bean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>menu</managed-bean-name>
+ <managed-bean-class>org.richfaces.MenuBean</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ </managed-bean>
</faces-config>
Added: trunk/samples/panelmenu-sample/src/main/webapp/pages/pageFalse.jsp
===================================================================
--- trunk/samples/panelmenu-sample/src/main/webapp/pages/pageFalse.jsp
(rev 0)
+++ trunk/samples/panelmenu-sample/src/main/webapp/pages/pageFalse.jsp 2008-03-06 10:30:56
UTC (rev 6584)
@@ -0,0 +1,25 @@
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/panelmenu"
prefix="pm"%>
+<html>
+<head>
+ <title>RF-2192</title>
+</head>
+<body>
+ <f:view>
+ <h:form>
+ <pm:panelMenu id="menu" expandSingle="true">
+ <pm:panelMenuGroup label="Group1">
+ <pm:panelMenuItem label="Item1"
actionListener="#{menu.item1Clicked}"/>
+ </pm:panelMenuGroup>
+ <pm:panelMenuGroup label="Group2">
+ <pm:panelMenuItem label="Item2"
actionListener="#{menu.item2Clicked}"/>
+ </pm:panelMenuGroup>
+ <pm:panelMenuGroup label="Group3">
+ <pm:panelMenuItem label="Item3"
actionListener="#{menu.item3Clicked}"/>
+ </pm:panelMenuGroup>
+ </pm:panelMenu>
+ </h:form>
+ </f:view>
+</html>
\ No newline at end of file
Property changes on: trunk/samples/panelmenu-sample/src/main/webapp/pages/pageFalse.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: trunk/samples/panelmenu-sample/src/main/webapp/pages/pageTrue.jsp
===================================================================
--- trunk/samples/panelmenu-sample/src/main/webapp/pages/pageTrue.jsp
(rev 0)
+++ trunk/samples/panelmenu-sample/src/main/webapp/pages/pageTrue.jsp 2008-03-06 10:30:56
UTC (rev 6584)
@@ -0,0 +1,25 @@
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/panelmenu"
prefix="pm"%>
+<html>
+<head>
+ <title>RF-2192</title>
+</head>
+<body>
+ <f:view>
+ <h:form>
+ <pm:panelMenu id="menu" expandSingle="false">
+ <pm:panelMenuGroup label="Group1">
+ <pm:panelMenuItem label="Item1"
actionListener="#{menu.item1Clicked}"/>
+ </pm:panelMenuGroup>
+ <pm:panelMenuGroup label="Group2">
+ <pm:panelMenuItem label="Item2"
actionListener="#{menu.item2Clicked}"/>
+ </pm:panelMenuGroup>
+ <pm:panelMenuGroup label="Group3">
+ <pm:panelMenuItem label="Item3"
actionListener="#{menu.item3Clicked}"/>
+ </pm:panelMenuGroup>
+ </pm:panelMenu>
+ </h:form>
+ </f:view>
+</html>
\ No newline at end of file
Property changes on: trunk/samples/panelmenu-sample/src/main/webapp/pages/pageTrue.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native