<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/inplaceSelect" prefix="is"%>
<html>
      <head>
		<title>InplaceSelect Sample</title>
		<style>
			.tab_example {width : 300px; border-top:1px solid #c0c0c0; border-left:1px solid #c0c0c0;}
			.tab_example td{width : 150px;  border-bottom:1px solid #c0c0c0; border-right:1px solid #c0c0c0;}
		</style>
	  </head>
	  <body>
	  	<f:view>
	  		<h:form>
				<h:selectOneRadio binding="#{skinBean.component}" />
				<h:commandLink action="#{skinBean.change}" value="set skin" />
				<h:outputText value="Current skin: #{skinBean.skin}"/><br />
			</h:form>
	  		<h:form>
	  			<h:panelGrid columns="2">
	  				<h:outputText value="editEvent is: "></h:outputText>
	  				<h:inputText value="#{bean.editEvent}"></h:inputText>
	  				
	  				<h:outputText value="maxSelectWidth is: "></h:outputText>
	  				<h:inputText value="#{bean.maxSelectWidth}"></h:inputText>
	  				
	  				<h:outputText value="minSelectWidth is: "></h:outputText>
	  				<h:inputText value="#{bean.minSelectWidth}"></h:inputText>
	  				
	  				<h:outputText value="selectWidth is: "></h:outputText>
	  				<h:inputText value="#{bean.selectWidth}"></h:inputText>
	  				
	  				<h:outputText value="defaultLabel is: "></h:outputText>
	  				<h:inputText value="#{bean.defaultLabel}"></h:inputText>
	  				
	  				<h:outputText value="controlsVerticalPosition is: "></h:outputText>
	  				<h:inputText value="#{bean.controlsPosition}"></h:inputText>
	  				
	  				<h:outputText value="controlsHorizontalPosition is: "></h:outputText>
	  				<h:inputText value="#{bean.controlsHorizontalAlign}"></h:inputText>
	  				
	  				<h:outputText value="value is: "></h:outputText>
	  				<h:inputText value="#{bean.value}"></h:inputText>
	  				
	  				<h:outputText value="listWidth is: "></h:outputText>
	  				<h:inputText value="#{bean.listWidth}"></h:inputText>
	  				
	  				<h:outputText value="listHeight is: "></h:outputText>
	  				<h:inputText value="#{bean.listHeight}"></h:inputText>
	  				
	  				<h:outputText value="selectOnEdit (default: false): " />
					<h:selectBooleanCheckbox value="#{bean.selectOnEdit}" />
	  				
	  				<h:outputText value="showControls (default: false): " />
					<h:selectBooleanCheckbox value="#{bean.showControls}" />
					
	  				<h:outputText value="editOnTab (default: true): " />
					<h:selectBooleanCheckbox value="#{bean.editOnTab}" />
					
					<h:outputText value="openOnEdit (default: false): " />
					<h:selectBooleanCheckbox value="#{bean.openOnEdit}" />
	  			  			  			
	  			</h:panelGrid>
	  			  		
	  			
	  			Fresh off his victory in the Florida primary, Sen. John McCain is poised to take another big prize. Former
	  			    <is:inplaceSelect 
	  			    	id="aaaa"
	  			    	editEvent="#{bean.editEvent}"
	  			    	maxSelectWidth="#{bean.maxSelectWidth}"
	  			    	minSelectWidth="#{bean.minSelectWidth}"
	  			    	defaultLabel="#{bean.defaultLabel}"
	  			    	controlsVerticalPosition="#{bean.controlsPosition}"
	  			    	controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
	  			    	value="#{bean.value}"
	  			    	listWidth="#{bean.listWidth}"
	  			    	listHeight="#{bean.listHeight}"
	  			    	selectOnEdit="#{bean.selectOnEdit}"
	  			    	showControls="#{bean.showControls}"
	  			    	editOnTab="#{bean.editOnTab}"
	  			    	openOnEdit="#{bean.openOnEdit}"
						valueChangeListener="#{bean.valueChange}"
						layout="inline"
						>
						<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
						<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
						<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
						<f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
						<f:selectItem itemLabel="option 5" itemValue="Detroit"/>
						<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
						<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
						<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
						<f:selectItem itemLabel="option 9" itemValue="New York"/>
					</is:inplaceSelect>
				 Mayor Rudy Giuliani plans to drop out and endorse McCain, two GOP sources said. That would give McCain added momentum heading into a debate Wednesday and next week's Super Tuesday contests
				
				<br/>
				<h:outputText value="value is: #{bean.value}"></h:outputText>			
				<h:commandButton value="submit"></h:commandButton>
				
					
				<table class="tab_example" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td> 	  			    
							<is:inplaceSelect 
			  			    	editEvent="#{bean.editEvent}"
			  			    	maxSelectWidth="#{bean.maxSelectWidth}"
			  			    	minSelectWidth="#{bean.minSelectWidth}"
			  			    	defaultLabel="#{bean.defaultLabel}"
			  			    	controlsVerticalPosition="#{bean.controlsPosition}"
			  			    	controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
			  			    	value="#{bean.value}"
			  			    	listWidth="#{bean.listWidth}"
			  			    	listHeight="#{bean.listHeight}"
			  			    	selectOnEdit="#{bean.selectOnEdit}"
			  			    	showControls="#{bean.showControls}"
			  			    	editOnTab="#{bean.editOnTab}"
			  			    	openOnEdit="#{bean.openOnEdit}"
								valueChangeListener="#{bean.valueChange}"
								layout="block"
								>
								<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
								<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
								<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
								<f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
								<f:selectItem itemLabel="option 5" itemValue="Detroit"/>
								<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
								<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
								<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
								<f:selectItem itemLabel="option 9" itemValue="New York"/>
							</is:inplaceSelect>
						</td>
						<td> 	  			    
							<is:inplaceSelect 
			  			    	editEvent="#{bean.editEvent}"
			  			    	maxSelectWidth="#{bean.maxSelectWidth}"
			  			    	minSelectWidth="#{bean.minSelectWidth}"
			  			    	defaultLabel="#{bean.defaultLabel}"
			  			    	controlsVerticalPosition="#{bean.controlsPosition}"
			  			    	controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
			  			    	value="#{bean.value}"
			  			    	listWidth="#{bean.listWidth}"
			  			    	listHeight="#{bean.listHeight}"
			  			    	selectOnEdit="#{bean.selectOnEdit}"
			  			    	showControls="#{bean.showControls}"
			  			    	editOnTab="#{bean.editOnTab}"
			  			    	openOnEdit="#{bean.openOnEdit}"
								valueChangeListener="#{bean.valueChange}"
								layout="block"
								>
								<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
								<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
								<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
								<f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
								<f:selectItem itemLabel="option 5" itemValue="Detroit"/>
								<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
								<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
								<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
								<f:selectItem itemLabel="option 9" itemValue="New York"/>
							</is:inplaceSelect>
						</td>
					</tr>
					<tr>
						<td> 	  			    
							<is:inplaceSelect 
			  			    	editEvent="#{bean.editEvent}"
			  			    	maxSelectWidth="#{bean.maxSelectWidth}"
			  			    	minSelectWidth="#{bean.minSelectWidth}"
			  			    	defaultLabel="#{bean.defaultLabel}"
			  			    	controlsVerticalPosition="#{bean.controlsPosition}"
			  			    	controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
			  			    	value="#{bean.value}"
			  			    	listWidth="#{bean.listWidth}"
			  			    	listHeight="#{bean.listHeight}"
			  			    	selectOnEdit="#{bean.selectOnEdit}"
			  			    	showControls="#{bean.showControls}"
			  			    	editOnTab="#{bean.editOnTab}"
			  			    	openOnEdit="#{bean.openOnEdit}"
								valueChangeListener="#{bean.valueChange}"
								layout="block"
								>
								<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
								<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
								<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
								<f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
								<f:selectItem itemLabel="option 5" itemValue="Detroit"/>
								<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
								<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
								<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
								<f:selectItem itemLabel="option 9" itemValue="New York"/>
							</is:inplaceSelect>
						</td>
						<td> 	  			    
							<is:inplaceSelect 
			  			    	editEvent="#{bean.editEvent}"
			  			    	maxSelectWidth="#{bean.maxSelectWidth}"
			  			    	minSelectWidth="#{bean.minSelectWidth}"
			  			    	defaultLabel="#{bean.defaultLabel}"
			  			    	controlsVerticalPosition="#{bean.controlsPosition}"
			  			    	controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
			  			    	value="#{bean.value}"
			  			    	listWidth="#{bean.listWidth}"
			  			    	listHeight="#{bean.listHeight}"
			  			    	selectOnEdit="#{bean.selectOnEdit}"
			  			    	showControls="#{bean.showControls}"
			  			    	editOnTab="#{bean.editOnTab}"
			  			    	openOnEdit="#{bean.openOnEdit}"
								valueChangeListener="#{bean.valueChange}"
								layout="block"
								>
								<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
								<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
								<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
								<f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
								<f:selectItem itemLabel="option 5" itemValue="Detroit"/>
								<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
								<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
								<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
								<f:selectItem itemLabel="option 9" itemValue="New York"/>
							</is:inplaceSelect>
						</td>
					</tr>
					<tr>
						<td> 	  			    
							<is:inplaceSelect 
			  			    	editEvent="#{bean.editEvent}"
			  			    	maxSelectWidth="#{bean.maxSelectWidth}"
			  			    	minSelectWidth="#{bean.minSelectWidth}"
			  			    	defaultLabel="#{bean.defaultLabel}"
			  			    	controlsVerticalPosition="#{bean.controlsPosition}"
			  			    	controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
			  			    	value="#{bean.value}"
			  			    	listWidth="#{bean.listWidth}"
			  			    	listHeight="#{bean.listHeight}"
			  			    	selectOnEdit="#{bean.selectOnEdit}"
			  			    	showControls="#{bean.showControls}"
			  			    	editOnTab="#{bean.editOnTab}"
			  			    	openOnEdit="#{bean.openOnEdit}"
								valueChangeListener="#{bean.valueChange}"
								layout="block"
								>
								<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
								<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
								<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
								<f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
								<f:selectItem itemLabel="option 5" itemValue="Detroit"/>
								<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
								<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
								<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
								<f:selectItem itemLabel="option 9" itemValue="New York"/>
							</is:inplaceSelect>
						</td>
						<td> 	  			    
							<is:inplaceSelect 
			  			    	editEvent="#{bean.editEvent}"
			  			    	maxSelectWidth="#{bean.maxSelectWidth}"
			  			    	minSelectWidth="#{bean.minSelectWidth}"
			  			    	defaultLabel="#{bean.defaultLabel}"
			  			    	controlsVerticalPosition="#{bean.controlsPosition}"
			  			    	controlsHorizontalPosition="#{bean.controlsHorizontalAlign}"
			  			    	value="#{bean.value}"
			  			    	listWidth="#{bean.listWidth}"
			  			    	listHeight="#{bean.listHeight}"
			  			    	selectOnEdit="#{bean.selectOnEdit}"
			  			    	showControls="#{bean.showControls}"
			  			    	editOnTab="#{bean.editOnTab}"
			  			    	openOnEdit="#{bean.openOnEdit}"
								valueChangeListener="#{bean.valueChange}"
								layout="block"
								>
								<f:selectItem itemLabel="option 1" itemValue="Kansas City"/>
								<f:selectItem itemLabel="option 2" itemValue="Las Vegas"/>
								<f:selectItem itemLabel="option 3" itemValue="Oklahoma City"/>
								<f:selectItem itemLabel="option 4" itemValue="New Jersey"/>
								<f:selectItem itemLabel="option 5" itemValue="Detroit"/>
								<f:selectItem itemLabel="option 6" itemValue="Toronto"/>
								<f:selectItem itemLabel="option 7" itemValue="Cleveland"/>
								<f:selectItem itemLabel="option 8" itemValue="Indianapolis"/>
								<f:selectItem itemLabel="option 9" itemValue="New York"/>
							</is:inplaceSelect>
						</td>
					</tr>
				</table>
			
			</h:form>
		</f:view>
	  </body>	
</html>  
