<%@ 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="inplaceInputSubviewID">
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:inplaceInput 
		inputWidth="#{inplaceInput.inputWidth}"
		maxInputWidth="#{inplaceInput.maxInputWidth}"
		minInputWidth="#{inplaceInput.minInputWidth}"
		required="#{inplaceInput.required}"
		requiredMessage="#{inplaceInput.requiredMessage}"
		tabindex="#{inplaceInput.tabindex}"
		editEvent="#{inplaceInput.editEvent}"
		defaultLabel="#{inplaceInput.defaultLabel}"
		controlsVerticalPosition="#{inplaceInput.controlsVerticalPosition}"
		controlsHorizontalPosition="#{inplaceInput.controlsHorizontalPosition}"
		value="#{inplaceInput.value}"
		selectOnEdit="#{inplaceInput.selectOnEdit}"
		showControls="#{inplaceInput.showControls}"
		rendered="#{inplaceInput.rendered}"
		immediate="#{inplaceInput.immediate}">
	</rich:inplaceInput>
 are easy to exploit. 
 
  	<h:panelGrid columns="2">
		<a4j:commandButton value="refresh" reRender="inplaceInputValueCLID"></a4j:commandButton>
		<h:outputText id="inplaceInputValueCLID"
			value="#{inplaceInput.valueCL}"></h:outputText>
	</h:panelGrid>
	<h:panelGrid columns="2">
		<h:outputText value="value"></h:outputText>
		<h:inputText id="inplaceInputValueID" value="#{inplaceInput.value}" onchange="submit();">
		</h:inputText>
		
				
		<h:outputText value="defaultLabel"></h:outputText>
		<h:inputText value="#{inplaceInput.defaultLabel}" onchange="submit();">
		</h:inputText>

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

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

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

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

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

		<h:outputText value="controlsVerticalPosition"></h:outputText>
		<h:selectOneRadio value="#{inplaceInput.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="#{inplaceInput.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="selectOnEdit"></h:outputText>
		<h:selectBooleanCheckbox value="#{inplaceInput.selectOnEdit}" onchange="submit();">
		</h:selectBooleanCheckbox>

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

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

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

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

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

	</h:panelGrid>
</f:subview>