<!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:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
<link rel="stylesheet" href="#{facesContext.externalContext.requestContextPath}/styles/styles.css" type="text/css" />
</head>


<f:view>
		<h:form id="test">
<rich:tabPanel switchType="ajax">

<rich:tab label="Sample 1">
<h:outputText value="1"></h:outputText>
<h:inputText value="#{dDMenu.mode}" required="true" />
</rich:tab>

<rich:tab label="Sample 2">
<a4j:support event="ontabenter"></a4j:support>
<h:outputText value="2"></h:outputText>
<h:inputText value="#{dDMenu.mode}"></h:inputText>
</rich:tab>

</rich:tabPanel> 
		</h:form>
</f:view>
</html> 	