<%@ 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="tooltipSubviewID">
		<h:messages></h:messages>

		<h:outputText value="DEFAULT VALUE:"></h:outputText>

		<f:verbatim>
			<br />
		</f:verbatim>

		<h:inputText value="Text" id="inp1" size="50">
			<rich:toolTip value="toolTip for input text" onclick="print('onclickInputID', 'onclick work!')"
				oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
				onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
				onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
				onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
				onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
				<f:facet name="defaultContent">
					<f:verbatim>DEFAULT VALUE</f:verbatim>
				</f:facet>
			</rich:toolTip>
		</h:inputText>

		<h:selectOneListbox value="1" id="ddl">
			<rich:toolTip value="1231231" onclick="print('onclickInputID', 'onclick work!')"
				oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
				onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
				onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
				onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
				onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
				<f:facet name="defaultContent">
					<f:verbatim>DEFAULT VALUE DropDown</f:verbatim>
				</f:facet>
			</rich:toolTip>
		</h:selectOneListbox>

		<f:verbatim>
			<br />
			<br />
		</f:verbatim>

		<h:outputText value=" Test tooltip:"></h:outputText>
		<f:verbatim>
			<br />
		</f:verbatim>

		<rich:panel style="width:50px; height:50px; background-color: gray">
			<rich:toolTip id="tooltipID" value="#{tooltip.value}" mode="#{tooltip.mode}" 
				layout="#{tooltip.layout}" horizontalOffset="#{tooltip.horizontalOffset}" verticalOffset="#{tooltip.verticalOffset}"
				followMouse="#{tooltip.followMouse}" direction="#{tooltip.direction}" style="#{tooltip.style}" disabled="#{tooltip.disabled}"
				rendered="#{tooltip.rendered}" onclick="print('onclickInputID', 'onclick work!')"
				oncomplete="print('oncompleteInputID', 'oncomplete work!')" ondblclick="print('ondblclickInputID', 'ondblclick work!')"
				onhide="print('onhideInputID', 'onhide work!')" onkeydown="print('onkeydownInputID', 'onkeydown work!')"
				onkeypress="print('onkeypressInputID', 'onkeypress work!')" onkeyup="print('onkeyupInputID', 'onkeyup work!')"
				onmousedown="print('onmousedownInputID', 'onmousedown work!')" onmousemove="print('onmousemoveInputID', 'onmousemove work!')"
				onmouseout="print('onmouseoutInputID', 'onmouseout work!')" onmouseover="print('onmouseoverInputID', 'onmouseover work!')"
				onmouseup="print('onmouseupInputID', 'onmouseup work!')" onshow="print('onshowInputID', 'onshow work!')">
				<h:graphicImage id="pricsID" value="/pics/ajax_process.gif"></h:graphicImage>
			</rich:toolTip>
		</rich:panel>

		<f:verbatim>
			<br />
		</f:verbatim>

</f:subview>
