<%@ 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="inplaceSelectSubviewID">
This is because such an error can easily be made at programming level, <br />
and while invisible for the user who does not understand or cannot <br />
acquire the source code, many of those 
<rich:inplaceSelect id="inplaceSelectID" 

		tabindex="#{inplaceSelect.tabindex}"
		editEvent="#{inplaceSelect.editEvent}"
		maxSelectWidth="#{inplaceSelect.maxSelectWidth}"
		minSelectWidth="#{inplaceSelect.minSelectWidth}"
		selectWidth="#{inplaceSelect.selectWidth}"
		defaultLabel="#{inplaceSelect.defaultLabel}"
		controlsVerticalPosition="#{inplaceSelect.controlsVerticalPosition}"
		controlsHorizontalPosition="#{inplaceSelect.controlsHorizontalPosition}"
		value="#{inplaceSelect.value}" listWidth="#{inplaceSelect.listWidth}"
		listHeight="#{inplaceSelect.listHeight}"
		selectOnEdit="#{inplaceSelect.selectOnEdit}"
		showControls="#{inplaceSelect.showControls}"
		editOnTab="#{inplaceSelect.editOnTab}"
		openOnEdit="#{inplaceSelect.openOnEdit}"
		rendered="#{inplaceSelect.rendered}"
		immediate="#{inplaceSelect.immediate}">
		<f:selectItem itemLabel="errors" itemValue="errors" />
		<f:selectItem itemLabel="fatals" itemValue="fatals" />
		<f:selectItem itemLabel="infos" itemValue="infos" />
		<f:selectItem itemLabel="passeds" itemValue="passeds" />
		<f:selectItem itemLabel="warns" itemValue="warns" />
	</rich:inplaceSelect>
 are easy to exploit.
 	<h:panelGrid columns="2">
		<a4j:commandButton value="refresh" reRender="inplaceSelectValueCLID"></a4j:commandButton>
		<h:outputText id="inplaceSelectValueCLID"
			value="#{inplaceSelect.valueCL}"></h:outputText>
	</h:panelGrid>

	<h:panelGrid columns="2">
		<h:outputText value="value"></h:outputText>
		<h:inputText value="#{inplaceSelect.value}"></h:inputText>
		
		<h:outputText value="defaultLabel"></h:outputText>
		<h:inputText value="#{inplaceSelect.defaultLabel}"
			onchange="submit();"></h:inputText>

		<h:outputText value="editEvent"></h:outputText>
		<h:inputText value="#{inplaceSelect.editEvent}" onchange="submit();"></h:inputText>

		<h:outputText value="selectWidth"></h:outputText>
		<h:inputText value="#{inplaceSelect.selectWidth}" onchange="submit();"></h:inputText>

		<h:outputText value="maxSelectWidth"></h:outputText>
		<h:inputText value="#{inplaceSelect.maxSelectWidth}"
			onchange="submit();"></h:inputText>

		<h:outputText value="minSelectWidth"></h:outputText>
		<h:inputText value="#{inplaceSelect.minSelectWidth}"
			onchange="submit();"></h:inputText>

		<h:outputText value="listWidth"></h:outputText>
		<h:inputText value="#{inplaceSelect.listWidth}" onchange="submit();"></h:inputText>

		<h:outputText value="listHeight"></h:outputText>
		<h:inputText value="#{inplaceSelect.listHeight}" onchange="submit();"></h:inputText>

		<h:outputText value="controlsVerticalPosition"></h:outputText>
		<h:selectOneRadio value="#{inplaceSelect.controlsVerticalPosition}"
			onchange="submit();">
			<f:selectItem itemLabel="top" itemValue="top" />
			<f:selectItem itemLabel="bottom" itemValue="bottom" />
			<f:selectItem itemLabel="center" itemValue="center" />
		</h:selectOneRadio>

		<h:outputText value="controlsHorizontalPosition"></h:outputText>
		<h:selectOneRadio value="#{inplaceSelect.controlsHorizontalPosition}"
			onchange="submit();">
			<f:selectItem itemLabel="right" itemValue="right" />
			<f:selectItem itemLabel="center" itemValue="center" />
			<f:selectItem itemLabel="left" itemValue="left" />
		</h:selectOneRadio>
		<h:outputText value="tabindex"></h:outputText>
		<h:inputText value="#{inplaceSelect.tabindex}" onchange="submit();"></h:inputText>

		<h:outputText value="selectOnEdit"></h:outputText>
		<h:selectBooleanCheckbox value="#{inplaceSelect.selectOnEdit}"
			onchange="submit();"></h:selectBooleanCheckbox>

		<h:outputText value="showControls"></h:outputText>
		<h:selectBooleanCheckbox value="#{inplaceSelect.showControls}"
			onchange="submit();"></h:selectBooleanCheckbox>

		<h:outputText value="applyFromControlsOnly"></h:outputText>
		<h:selectBooleanCheckbox
			value="#{inplaceSelect.applyFromControlsOnly}" onchange="submit();"></h:selectBooleanCheckbox>

		<h:outputText value="editOnTab"></h:outputText>
		<h:selectBooleanCheckbox value="#{inplaceSelect.editOnTab}"
			onchange="submit();"></h:selectBooleanCheckbox>

		<h:outputText value="openOnEdit"></h:outputText>
		<h:selectBooleanCheckbox value="#{inplaceSelect.openOnEdit}"
			onchange="submit();"></h:selectBooleanCheckbox>
	</h:panelGrid>
</f:subview>