<%@ 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="DropDownMenuSubviewID">
		<h:panelGrid columns="2">
			<rich:spacer width="400px" height="400px"></rich:spacer>
			<rich:panel>
				<rich:dropDownMenu id="ddmId"  value="DropDownMenu" submitMode="#{dDMenu.mode}" hideDelay="#{dDMenu.hideDelay}"
					direction="#{dDMenu.direction}" horizontalOffset="#{dDMenu.horizontalOffset}" jointPoint="#{dDMenu.jointPoint}"
					popupWidth="#{dDMenu.popupWidth}" showDelay="#{dDMenu.showDelay}" rendered="#{dDMenu.rendered}"
					verticalOffset="#{dDMenu.verticalOffset}" styleClass="panelpos" event="#{dDMenu.event}"
					oncollapse="print('oncollapseInputID', 'oncollapse work!')" onexpand="print('onexpandInputID', 'onexpand work!')"
					ongroupactivate="print('ongroupactivateInputID', 'ongroupactivate work!')"
					onitemselect="print('onitemselectInputID', 'onitemselect work!')"
					onmousemove="print('onmousemoveInputID', 'onmousemove work!')" onmouseout="print('onmouseoutInputID', 'onmouseout work!')"
					onmouseover="print('onmouseoverInputID', 'onmouseover work!')">
					<rich:menuItem icon="#{dDMenu.icon}" onclick="print('onclickInputID', 'onclick work (item)!')"
						oncomplete="print('oncompleteInputID', 'oncomplete work (item)!')" onmousedown="print('onmousedownInputID', 'onmousedown work (item)!')"
						onmousemove="print('onmousemoveInputID', ' work (item)!')" onmouseout="print('onmouseoutInputID', 'onmouseout work (item)!')"
						onmouseover="print('onmouseoverInputID', 'onmouseover work (item)!')" onmouseup="print('onmouseupInputID', 'onmouseup work (item)!')"
						onselect="print('onselectInputID', 'onselect work (item)!')">
						<h:outputText value="Item1(test events)" />
					</rich:menuItem>
					<rich:menuSeparator />
					<rich:menuItem icon="#{dDMenu.icon}" onmousedown="alert('OnMouseDown')" selectClass="mousemove">
						<h:outputText value="OnMouseDown" />
					</rich:menuItem>
					<rich:menuSeparator />
					<rich:menuItem>
						<h:outputText value="Item2" />
					</rich:menuItem>
					<rich:menuItem icon="#{dDMenu.icon}">
						<h:outputText value="Item3" />
					</rich:menuItem>
					<rich:menuSeparator />
					<rich:menuItem icon="/pics/ajax_process.gif" iconDisabled="/pics/ajax_stoped.gif" disabled="#{dDMenu.disabled}">
						<h:outputText value="Image"></h:outputText>
					</rich:menuItem>
					<rich:menuItem disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}">
						<h:outputText value="Image:" />
						<h:graphicImage value="/pics/ajax_process.gif" />
					</rich:menuItem>
					<rich:menuSeparator />
					<rich:menuGroup value="Second level" direction="#{dDMenu.groupDirection}" disabled="#{dDMenu.disabled}" icon="#{dDMenu.icon}"
						iconFolder="#{dDMenu.iconFolder}">
						<rich:menuItem icon="#{dDMenu.icon}">
							<h:outputText value="Item3" />
						</rich:menuItem>
						<rich:menuItem value="Item4">
							<h:selectOneMenu value="#{dDMenu.selectMenu}">
								<f:selectItem itemLabel="Honda Accord" itemValue="accord" />
								<f:selectItem itemLabel="Toyota 4Runner" itemValue="4runner" />
								<f:selectItem itemLabel="Nissan Z350" itemValue="nissan-z" />
							</h:selectOneMenu>
						</rich:menuItem>
						<rich:menuSeparator />
						<rich:menuItem icon="#{dDMenu.icon}">
							<h:outputText value="CheckBox " />
							<h:selectBooleanCheckbox value="#{dDMenu.check}" onclick="submit()" />
						</rich:menuItem>
					</rich:menuGroup>
				</rich:dropDownMenu>
			</rich:panel>
		</h:panelGrid>
		<a4j:log></a4j:log>
</f:subview>
