Author: adubovsky
Date: 2008-11-13 09:47:31 -0500 (Thu, 13 Nov 2008)
New Revision: 11144
Added:
trunk/test-applications/automator/src/main/java/dropDownMenu/
trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java
trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp
Modified:
trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF
trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp
trunk/test-applications/automator/src/main/webapp/main/main.jsp
Log:
Added:
trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java
===================================================================
--- trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java
(rev 0)
+++
trunk/test-applications/automator/src/main/java/dropDownMenu/DropDownMenuGeneral.java 2008-11-13
14:47:31 UTC (rev 11144)
@@ -0,0 +1,20 @@
+package dropDownMenu;
+
+public class DropDownMenuGeneral {
+
+ public DropDownMenuGeneral() {
+
+ }
+
+ public void doSummary() {
+ System.out.println("doSummary");
+ }
+
+ public void doInfo() {
+ System.out.println("doInfo");
+ }
+
+ public void doTable3() {
+ System.out.println("doTable3");
+ }
+}
Modified: trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF 2008-11-13
14:29:58 UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/META-INF/MANIFEST.MF 2008-11-13
14:47:31 UTC (rev 11144)
@@ -1,3 +1,2 @@
Manifest-Version: 1.0
-Class-Path:
Modified: trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml 2008-11-13
14:29:58 UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/WEB-INF/faces-config.xml 2008-11-13
14:47:31 UTC (rev 11144)
@@ -8,8 +8,8 @@
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
- <managed-bean-name>comboBoxGeneral</managed-bean-name>
- <managed-bean-class>comboBox.ComboBoxGeneral</managed-bean-class>
+ <managed-bean-name>dropDownMenuGeneral</managed-bean-name>
+ <managed-bean-class>dropDownMenu.DropDownMenuGeneral</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
Added: trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp
(rev 0)
+++
trunk/test-applications/automator/src/main/webapp/component/dropDownMenu.jsp 2008-11-13
14:47:31 UTC (rev 11144)
@@ -0,0 +1,23 @@
+<%@ 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://richfaces.org/rich" prefix="rich"%>
+
+<f:subview id="dropDownMenuSubview">
+ <div>The <rich:dropDownMenu> component is used for creating
+ multilevel drop-down menus.</div>
+ <rich:spacer height="30"></rich:spacer>
+
+ <h:panelGrid id="dropDownMenuGrid" columns="1">
+ <h:messages id="mess" style="color: red" />
+ <rich:dropDownMenu value="Tables">
+ <rich:menuItem value="Table1"
+ action="#{dropDownMenuGeneral.doSummary}"
id="dropdownmenu_mItem5" />
+ <rich:menuItem value="Table2"
action="#{dropDownMenuGeneral.doInfo}"
+ id="dropdownmenu_menuItem6" />
+ <rich:menuItem value="Table3"
+ action="#{dropDownMenuGeneral.doTable3}"
id="dropdownmenu_menuItem7" />
+ </rich:dropDownMenu>
+ </h:panelGrid>
+
+</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp 2008-11-13
14:29:58 UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/main/componentsList.jsp 2008-11-13
14:47:31 UTC (rev 11144)
@@ -13,5 +13,9 @@
<a4j:actionparam value="/component/calendar.jsp"
assignTo="#{general.componentPage}" />
</a4j:commandLink>
+ <a4j:commandLink reRender="componentPage"
value="DropDownMenu">
+ <a4j:actionparam value="/component/dropDownMenu.jsp"
+ assignTo="#{general.componentPage}" />
+ </a4j:commandLink>
</h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/automator/src/main/webapp/main/main.jsp
===================================================================
--- trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:29:58
UTC (rev 11143)
+++ trunk/test-applications/automator/src/main/webapp/main/main.jsp 2008-11-13 14:47:31
UTC (rev 11144)
@@ -9,7 +9,6 @@
<title>Automator</title>
<script type="text/javascript"
src="javascripts/handlers.js"></script>
<script type="text/javascript"
src="javascripts/common.js"></script>
- </head>
<body>
<h:form id="mainForm">
<div align="center"><h:panelGrid columns="2">