<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ 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"%>

<html>
<f:view>
	<head>
	</head>
	<body>
	<rich:modalPanel id="modalPanel2ID" minHeight="100" minWidth="200"
		resizeable="true" keepVisualState="true" showWhenRendered="true"
		binding="#{modalPanel.myModalPanel}">
		<h:form>

			<h:commandButton actionListener="#{modalPanel.checkBinding}"
				value="Binding"></h:commandButton>
			<h:outputText value="#{modalPanel.bindLabel}" />

			<h:outputLink
				onclick="Richfaces.hideModalPanel('modalPanel2ID');return false;"
				value="Close">
				<f:verbatim>Close</f:verbatim>
			</h:outputLink>
		</h:form>
	</rich:modalPanel>

	<rich:modalPanel id="mpm" width="500" height="300">
		<f:facet name="header">
			<h:outputText value="Modal Panel" />
		</f:facet>
		<f:facet name="controls">
			<h:graphicImage value="/pics/error.gif" style="cursor:pointer"
				onclick="Richfaces.hideModalPanel('mpm')" />
		</f:facet>

		<rich:fileUpload fileUploadListener="#{fileUpload.fileUploadListener}"
			disabled="false" addControlLabel="Legg til fil..."
			clearAllControlLabel="Ta bort alle" clearControlLabel="Ta bort"
			cancelEntryControlLabel="Ta bort"
			stopEntryControlLabel="Stoppe opplasting"
			stopControlLabel="Stoppe opplasting"
			uploadControlLabel="Last opp fil" listWidth="480" listHeight="230"
			onuploadcomplete="this.disabled=false" immediateUpload="false"
			autoclear="false">
			<f:facet name="label">
				<h:outputText value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}" />
			</f:facet>
		</rich:fileUpload>
	</rich:modalPanel>


	<h:form id="test">
		<rich:inputNumberSlider></rich:inputNumberSlider>


		<a onclick="Richfaces.showModalPanel('modalPanel2ID');" href="#">Show
		MP(binding)</a>
		<br />
		<a onclick="Richfaces.showModalPanel('mpm');" href="#">Show
		MP(fileUpload)</a>

	</h:form>
	<br />
	<h:form>
		<h:selectManyListbox value="#{custom.results}">
			<f:selectItems value="#{custom.itemsList}" />
			<a4j:support event="onchange"></a4j:support>
		</h:selectManyListbox>
	</h:form>
	</body>
</f:view>
</html>

