Author: ppitonak(a)redhat.com
Date: 2010-12-10 05:38:18 -0500 (Fri, 10 Dec 2010)
New Revision: 20492
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.java
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.properties
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/sideMenu.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/topMenu.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
Log:
https://issues.jboss.org/browse/RF-9795
* added two samples for rich:dropDownMenu
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-10
10:09:03 UTC (rev 20491)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-10
10:38:18 UTC (rev 20492)
@@ -127,6 +127,7 @@
components.put("richDataGrid", "Rich Data Grid");
components.put("richDataScroller", "Rich Data Scroller");
components.put("richDataTable", "Rich Data Table");
+ components.put("richDropDownMenu", "Rich Drop Down Menu");
components.put("richExtendedDataTable", "Rich Extended Data
Table");
components.put("richFileUpload", "Rich File Upload");
components.put("richFunctions", "Rich Functions");
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.java
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.java 2010-12-10
10:38:18 UTC (rev 20492)
@@ -0,0 +1,108 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+import org.richfaces.component.UIDropDownMenu;
+import org.richfaces.tests.metamer.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for rich:dropDownMenu.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richDropDownMenuBean")
+@ViewScoped
+public class RichDropDownMenuBean implements Serializable {
+
+ private static final long serialVersionUID = -1L;
+ private static Logger logger;
+ private Attributes attributes;
+ private String current;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getUIComponentAttributes(UIDropDownMenu.class,
getClass(), false);
+
+ attributes.setAttribute("mode", "ajax");
+ attributes.setAttribute("rendered", true);
+
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public String getCurrent() {
+ return this.current;
+ }
+
+ public void setCurrent(String current) {
+ this.current = current;
+ }
+
+ public String doNew() {
+ this.current = "New";
+ return null;
+ }
+
+ public String doOpen() {
+ this.current = "Open";
+ return null;
+ }
+
+ public String doClose() {
+ this.current = "Close";
+ return null;
+ }
+
+ public String doSave() {
+ this.current = "Save";
+ return null;
+ }
+
+ public String doSaveAll() {
+ this.current = "Save All";
+ return null;
+ }
+
+ public String doExit() {
+ this.current = "Exit";
+ return null;
+ }
+}
Property changes on:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.java
___________________________________________________________________
Name: svn:keywords
+ Revision
Added:
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.properties
===================================================================
---
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.properties
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/resources/org/richfaces/tests/metamer/bean/RichDropDownMenuBean.properties 2010-12-10
10:38:18 UTC (rev 20492)
@@ -0,0 +1,3 @@
+attr.dir.ltr=ltr
+attr.dir.rtl=rtl
+attr.dir.null=
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/list.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/list.xhtml 2010-12-10
10:38:18 UTC (rev 20492)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Calendar</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="topMenu" outcome="topMenu"
value="Top Menu">
+ Simple page containing a toolbar with several
<b>rich:dropDownMenu</b>s and inputs for all attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="sideMenu" outcome="sideMenu"
value="Side Menu">
+ Page containing several <b>rich:dropDownMenu</b>s and inputs
for all attributes.
+ </metamer:testPageLink>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/sideMenu.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/sideMenu.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/sideMenu.xhtml 2010-12-10
10:38:18 UTC (rev 20492)
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <style type="text/css">
+ .rf-ddm-lbl-unsel {
+ border:1px solid #{a4jSkin.panelBorderColor} !important;
+ }
+
+ .optionList {
+ height: 22px;
+ }
+
+ .vertical-menu-cell {
+ padding: 0px 4px 0px 4px;
+ }
+ </style>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:panelGrid styleClass="vertical-menu-cell"
columnClasses="optionList" columns="1" cellspacing="0"
cellpadding="0">
+ <rich:dropDownMenu id="menu1"
+
dir="#{richDropDownMenuBean.attributes['dir'].value}"
+
disabled="#{richDropDownMenuBean.attributes['disabled'].value}"
+
hideDelay="#{richDropDownMenuBean.attributes['hideDelay'].value}"
+
lang="#{richDropDownMenuBean.attributes['lang'].value}"
+
mode="#{richDropDownMenuBean.attributes['mode'].value}"
+
onclick="#{richDropDownMenuBean.attributes['onclick'].value}"
+
ondblclick="#{richDropDownMenuBean.attributes['ondblclick'].value}"
+
ongrouphide="#{richDropDownMenuBean.attributes['ongrouphide'].value}"
+
ongroupshow="#{richDropDownMenuBean.attributes['ongroupshow'].value}"
+
onhide="#{richDropDownMenuBean.attributes['onhide'].value}"
+
onitemclick="#{richDropDownMenuBean.attributes['onitemclick'].value}"
+
onkeydown="#{richDropDownMenuBean.attributes['onkeydown'].value}"
+
onkeypress="#{richDropDownMenuBean.attributes['onkeypress'].value}"
+
onkeyup="#{richDropDownMenuBean.attributes['onkeyup'].value}"
+
onmousedown="#{richDropDownMenuBean.attributes['onmousedown'].value}"
+
onmousemove="#{richDropDownMenuBean.attributes['onmousemove'].value}"
+
onmouseout="#{richDropDownMenuBean.attributes['onmouseout'].value}"
+
onmouseover="#{richDropDownMenuBean.attributes['onmouseover'].value}"
+
onmouseup="#{richDropDownMenuBean.attributes['onmouseup'].value}"
+
onshow="#{richDropDownMenuBean.attributes['onshow'].value}"
+
popupWith="#{richDropDownMenuBean.attributes['popupWith'].value}"
+
rendered="#{richDropDownMenuBean.attributes['rendered'].value}"
+
showDelay="#{richDropDownMenuBean.attributes['showDelay'].value}"
+
showEvent="#{richDropDownMenuBean.attributes['showEvent'].value}"
+
style="#{richDropDownMenuBean.attributes['style'].value}"
+
styleClass="#{richDropDownMenuBean.attributes['styleClass'].value}"
+
title="#{richDropDownMenuBean.attributes['title'].value}"
+ >
+ <f:facet name="label">
+ <h:panelGroup>
+ <h:graphicImage library="images/icons"
name="copy.gif" styleClass="pic" />
+ <h:outputText value="File" />
+ </h:panelGroup>
+ </f:facet>
+
+ <rich:menuItem label="New"
action="#{richDropDownMenuBean.doNew}"
icon="/resources/images/icons/create_doc.gif"/>
+
+ <rich:menuItem label="Open"
action="#{richDropDownMenuBean.doOpen}"
icon="/resources/images/icons/open.gif" />
+
+ <rich:menuGroup label="Open Recent..."
disabled="true">
+ <rich:menuItem label="Save"
action="#{richDropDownMenuBean.doSave}"
icon="/resources/images/icons/save.gif" />
+ <rich:menuItem label="Save All"
action="#{richDropDownMenuBean.doSaveAll}">
+ <f:facet name="icon">
+ <h:graphicImage library="images/icons"
name="save_all.gif" />
+ </f:facet>
+ </rich:menuItem>
+ </rich:menuGroup>
+
+ <rich:menuSeparator id="menuSeparator11" />
+
+ <rich:menuGroup label="Save As...">
+ <rich:menuItem label="Save"
action="#{richDropDownMenuBean.doSave}"
icon="/resources/images/icons/save.gif" />
+ <rich:menuItem label="Save All"
action="#{richDropDownMenuBean.doSaveAll}">
+ <f:facet name="icon">
+ <h:graphicImage library="images/icons"
name="save_all.gif" />
+ </f:facet>
+ </rich:menuItem>
+ <rich:menuItem label="Send Online"
icon="/resources/images/icons/save.gif" disabled="true" />
+ </rich:menuGroup>
+
+ <rich:menuItem label="Print"
action="#{richDropDownMenuBean.doPrint}" disabled="true"/>
+
+ <rich:menuItem label="Close"
action="#{richDropDownMenuBean.doClose}" />
+
+ <rich:menuSeparator id="menuSeparator12" />
+
+ <rich:menuItem label="Exit"
action="#{richDropDownMenuBean.doExit}" />
+
+ </rich:dropDownMenu>
+
+ <rich:dropDownMenu id="menu2" mode="ajax">
+ <f:facet name="label">
+ <h:panelGrid cellpadding="0"
cellspacing="0" columns="2"
style="vertical-align:middle">
+ Links
+ </h:panelGrid>
+ </f:facet>
+ <rich:menuItem submitMode="none"
onclick="document.location.href='http://jboss.org/richfaces'...
+ <h:outputLink
value="http://jboss.org/richfaces">
+ <h:outputText value="RichFaces Home
Page"></h:outputText>
+ </h:outputLink>
+ </rich:menuItem>
+ <rich:menuItem submitMode="none"
onclick="document.location.href='http://community.jboss.org/en/r...
+ <h:outputLink
value="http://community.jboss.org/en/richfaces?view=discussions"...
Forum</h:outputLink>
+ </rich:menuItem>
+ </rich:dropDownMenu>
+
+
+ <rich:dropDownMenu id="menu3" label="Search"
direction="bottom-left" jointPoint="br" styleClass="search"
mode="client">
+ <rich:menuItem>
+ <h:inputText id="searchinput" />
+ <button type="button">Search</button>
+ </rich:menuItem>
+ <rich:menuItem label="Enter your search criteria here"
disabled="true"/>
+ </rich:dropDownMenu>
+
+ </h:panelGrid>
+
+ <br /><br />
+
+ <a4j:outputPanel ajaxRendered="true">
+ Current Selection:
+ <h:outputText id="output" style="font-weight:bold"
value="#{richDropDownMenuBean.current}"></h:outputText>
+ </a4j:outputPanel>
+
+ <br /><br />
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ Settings for first drop down menu:
+ <metamer:attributes value="#{richDropDownMenuBean.attributes}"
id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/topMenu.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/topMenu.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropDownMenu/topMenu.xhtml 2010-12-10
10:38:18 UTC (rev 20492)
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software 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 software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <style type="text/css">
+ .pic {
+ margin-bottom: -4px;
+ margin-right: 2px;
+ }
+
+ .search .rf-ddm-itm-sel {
+ background-color: transparent;
+ background-image:none;
+ border-color: transparent;
+ cursor: default;
+ }
+ </style>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <rich:toolbar id="toolbar" height="26px">
+ <rich:dropDownMenu id="menu1"
+
dir="#{richDropDownMenuBean.attributes['dir'].value}"
+
disabled="#{richDropDownMenuBean.attributes['disabled'].value}"
+
hideDelay="#{richDropDownMenuBean.attributes['hideDelay'].value}"
+
lang="#{richDropDownMenuBean.attributes['lang'].value}"
+
mode="#{richDropDownMenuBean.attributes['mode'].value}"
+
onclick="#{richDropDownMenuBean.attributes['onclick'].value}"
+
ondblclick="#{richDropDownMenuBean.attributes['ondblclick'].value}"
+
ongrouphide="#{richDropDownMenuBean.attributes['ongrouphide'].value}"
+
ongroupshow="#{richDropDownMenuBean.attributes['ongroupshow'].value}"
+
onhide="#{richDropDownMenuBean.attributes['onhide'].value}"
+
onitemclick="#{richDropDownMenuBean.attributes['onitemclick'].value}"
+
onkeydown="#{richDropDownMenuBean.attributes['onkeydown'].value}"
+
onkeypress="#{richDropDownMenuBean.attributes['onkeypress'].value}"
+
onkeyup="#{richDropDownMenuBean.attributes['onkeyup'].value}"
+
onmousedown="#{richDropDownMenuBean.attributes['onmousedown'].value}"
+
onmousemove="#{richDropDownMenuBean.attributes['onmousemove'].value}"
+
onmouseout="#{richDropDownMenuBean.attributes['onmouseout'].value}"
+
onmouseover="#{richDropDownMenuBean.attributes['onmouseover'].value}"
+
onmouseup="#{richDropDownMenuBean.attributes['onmouseup'].value}"
+
onshow="#{richDropDownMenuBean.attributes['onshow'].value}"
+
popupWith="#{richDropDownMenuBean.attributes['popupWith'].value}"
+
rendered="#{richDropDownMenuBean.attributes['rendered'].value}"
+
showDelay="#{richDropDownMenuBean.attributes['showDelay'].value}"
+
showEvent="#{richDropDownMenuBean.attributes['showEvent'].value}"
+
style="#{richDropDownMenuBean.attributes['style'].value}"
+
styleClass="#{richDropDownMenuBean.attributes['styleClass'].value}"
+
title="#{richDropDownMenuBean.attributes['title'].value}"
+ >
+ <f:facet name="label">
+ <h:panelGroup>
+ <h:graphicImage library="images/icons"
name="copy.gif" styleClass="pic" />
+ <h:outputText value="File" />
+ </h:panelGroup>
+ </f:facet>
+
+ <rich:menuItem label="New"
action="#{richDropDownMenuBean.doNew}"
icon="/resources/images/icons/create_doc.gif"/>
+
+ <rich:menuItem label="Open"
action="#{richDropDownMenuBean.doOpen}"
icon="/resources/images/icons/open.gif" />
+
+ <rich:menuGroup label="Open Recent..."
disabled="true">
+ <rich:menuItem label="Save"
action="#{richDropDownMenuBean.doSave}"
icon="/resources/images/icons/save.gif" />
+ <rich:menuItem label="Save All"
action="#{richDropDownMenuBean.doSaveAll}">
+ <f:facet name="icon">
+ <h:graphicImage library="images/icons"
name="save_all.gif" />
+ </f:facet>
+ </rich:menuItem>
+ </rich:menuGroup>
+
+ <rich:menuSeparator id="menuSeparator11" />
+
+ <rich:menuGroup label="Save As...">
+ <rich:menuItem label="Save"
action="#{richDropDownMenuBean.doSave}"
icon="/resources/images/icons/save.gif" />
+ <rich:menuItem label="Save All"
action="#{richDropDownMenuBean.doSaveAll}">
+ <f:facet name="icon">
+ <h:graphicImage library="images/icons"
name="save_all.gif" />
+ </f:facet>
+ </rich:menuItem>
+ <rich:menuItem label="Send Online"
icon="/resources/images/icons/save.gif" disabled="true" />
+ </rich:menuGroup>
+
+ <rich:menuItem label="Print"
action="#{richDropDownMenuBean.doPrint}" disabled="true"/>
+
+ <rich:menuItem label="Close"
action="#{richDropDownMenuBean.doClose}" />
+
+ <rich:menuSeparator id="menuSeparator12" />
+
+ <rich:menuItem label="Exit"
action="#{richDropDownMenuBean.doExit}" />
+
+ </rich:dropDownMenu>
+
+ <rich:dropDownMenu id="menu2" mode="ajax">
+ <f:facet name="label">
+ <h:panelGrid cellpadding="0"
cellspacing="0" columns="2"
style="vertical-align:middle">
+ Links
+ </h:panelGrid>
+ </f:facet>
+ <rich:menuItem submitMode="none"
onclick="document.location.href='http://jboss.org/richfaces'...
+ <h:outputLink
value="http://jboss.org/richfaces">
+ <h:outputText value="RichFaces Home
Page"></h:outputText>
+ </h:outputLink>
+ </rich:menuItem>
+ <rich:menuItem submitMode="none"
onclick="document.location.href='http://community.jboss.org/en/r...
+ <h:outputLink
value="http://community.jboss.org/en/richfaces?view=discussions"...
Forum</h:outputLink>
+ </rich:menuItem>
+ </rich:dropDownMenu>
+
+ <rich:toolbarGroup id="rightGroup"
location="right">
+ <rich:dropDownMenu id="menu3" label="Search"
direction="bottom-left" jointPoint="br" styleClass="search"
mode="client">
+ <rich:menuItem>
+ <h:inputText id="searchinput" />
+ <button type="button">Search</button>
+ </rich:menuItem>
+ <rich:menuItem label="Enter your search criteria
here" disabled="true"/>
+ </rich:dropDownMenu>
+ </rich:toolbarGroup>
+ </rich:toolbar>
+
+ <br /><br />
+
+ <a4j:outputPanel ajaxRendered="true">
+ Current Selection:
+ <h:outputText id="output" style="font-weight:bold"
value="#{richDropDownMenuBean.current}"></h:outputText>
+ </a4j:outputPanel>
+
+ <br /><br />
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ Settings for first drop down menu:
+ <metamer:attributes value="#{richDropDownMenuBean.attributes}"
id="attributes" />
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file