Author: ppitonak(a)redhat.com
Date: 2011-10-21 04:44:17 -0400 (Fri, 21 Oct 2011)
New Revision: 22836
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richFileUpload/simple.xhtml
Log:
attribute maxFilesQuantity of rich:fileUpload added
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richFileUpload/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richFileUpload/simple.xhtml 2011-10-20
14:24:43 UTC (rev 22835)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richFileUpload/simple.xhtml 2011-10-21
08:44:17 UTC (rev 22836)
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!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:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
-
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j">
- <!--
+<!--
JBoss, Home of Professional Open Source
Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
@@ -26,85 +26,79 @@
02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-->
- <ui:composition template="/templates/template.xhtml">
+<ui:composition template="/templates/template.xhtml">
- <ui:define name="view">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- </f:metadata>
- </ui:define>
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
- <ui:define name="component">
+ <ui:define name="component">
- <rich:fileUpload id="fileUpload"
-
acceptedTypes="#{richFileUploadBean.attributes['acceptedTypes'].value}"
-
addLabel="#{richFileUploadBean.attributes['addLabel'].value}"
-
clearAllLabel="#{richFileUploadBean.attributes['clearAllLabel'].value}"
-
clearLabel="#{richFileUploadBean.attributes['clearLabel'].value}"
-
data="#{richFileUploadBean.attributes['data'].value}"
-
deleteLabel="#{richFileUploadBean.attributes['deleteLabel'].value}"
-
dir="#{richFileUploadBean.attributes['dir'].value}"
-
disabled="#{richFileUploadBean.attributes['disabled'].value}"
-
doneLabel="#{richFileUploadBean.attributes['doneLabel'].value}"
-
execute="#{richFileUploadBean.attributes['execute'].value}"
-
fileUploadListener="#{richFileUploadBean.listener}"
-
lang="#{richFileUploadBean.attributes['lang'].value}"
-
limitRender="#{richFileUploadBean.attributes['limitRender'].value}"
-
noDuplicate="#{richFileUploadBean.attributes['noDuplicate'].value}"
-
onbeforedomupdate="#{richFileUploadBean.attributes['onbeforedomupdate'].value}"
-
onbegin="#{richFileUploadBean.attributes['onbegin'].value}"
-
onclear="#{richFileUploadBean.attributes['onclear'].value}"
-
onclick="#{richFileUploadBean.attributes['onclick'].value}"
-
oncomplete="#{richFileUploadBean.attributes['oncomplete'].value}"
-
ondblclick="#{richFileUploadBean.attributes['ondblclick'].value}"
-
onfilesubmit="#{richFileUploadBean.attributes['onfilesubmit'].value}"
-
onkeydown="#{richFileUploadBean.attributes['onkeydown'].value}"
-
onkeypress="#{richFileUploadBean.attributes['onkeypress'].value}"
-
onkeyup="#{richFileUploadBean.attributes['onkeyup'].value}"
-
onmousedown="#{richFileUploadBean.attributes['onmousedown'].value}"
-
onmousemove="#{richFileUploadBean.attributes['onmousemove'].value}"
-
onmouseout="#{richFileUploadBean.attributes['onmouseout'].value}"
-
onmouseover="#{richFileUploadBean.attributes['onmouseover'].value}"
-
onmouseup="#{richFileUploadBean.attributes['onmouseup'].value}"
-
ontyperejected="#{richFileUploadBean.attributes['ontyperejected'].value}"
-
onuploadcomplete="#{richFileUploadBean.attributes['onuploadcomplete'].value}"
-
render="#{richFileUploadBean.attributes['render'].value}"
-
rendered="#{richFileUploadBean.attributes['rendered'].value}"
-
serverErrorLabel="#{richFileUploadBean.attributes['serverErrorLabel'].value}"
-
sizeExceededLabel="#{richFileUploadBean.attributes['sizeExceededLabel'].value}"
-
status="#{richFileUploadBean.attributes['status'].value}"
-
style="#{richFileUploadBean.attributes['style'].value}"
-
styleClass="#{richFileUploadBean.attributes['styleClass'].value}"
-
title="#{richFileUploadBean.attributes['title'].value}"
-
uploadLabel="#{richFileUploadBean.attributes['uploadLabel'].value}"
- />
+ <rich:fileUpload id="fileUpload"
acceptedTypes="#{richFileUploadBean.attributes['acceptedTypes'].value}"
+
addLabel="#{richFileUploadBean.attributes['addLabel'].value}"
+
clearAllLabel="#{richFileUploadBean.attributes['clearAllLabel'].value}"
+
clearLabel="#{richFileUploadBean.attributes['clearLabel'].value}"
+ data="#{richFileUploadBean.attributes['data'].value}"
+
deleteLabel="#{richFileUploadBean.attributes['deleteLabel'].value}"
+ dir="#{richFileUploadBean.attributes['dir'].value}"
disabled="#{richFileUploadBean.attributes['disabled'].value}"
+
doneLabel="#{richFileUploadBean.attributes['doneLabel'].value}"
+ execute="#{richFileUploadBean.attributes['execute'].value}"
fileUploadListener="#{richFileUploadBean.listener}"
+ lang="#{richFileUploadBean.attributes['lang'].value}"
+
limitRender="#{richFileUploadBean.attributes['limitRender'].value}"
+
maxFilesQuantity="#{richFileUploadBean.attributes['maxFilesQuantity'].value}"
+
noDuplicate="#{richFileUploadBean.attributes['noDuplicate'].value}"
+
onbeforedomupdate="#{richFileUploadBean.attributes['onbeforedomupdate'].value}"
+
onbegin="#{richFileUploadBean.attributes['onbegin'].value}"
+
onclear="#{richFileUploadBean.attributes['onclear'].value}"
+
onclick="#{richFileUploadBean.attributes['onclick'].value}"
+
oncomplete="#{richFileUploadBean.attributes['oncomplete'].value}"
+
ondblclick="#{richFileUploadBean.attributes['ondblclick'].value}"
+
onfilesubmit="#{richFileUploadBean.attributes['onfilesubmit'].value}"
+
onkeydown="#{richFileUploadBean.attributes['onkeydown'].value}"
+
onkeypress="#{richFileUploadBean.attributes['onkeypress'].value}"
+
onkeyup="#{richFileUploadBean.attributes['onkeyup'].value}"
+
onmousedown="#{richFileUploadBean.attributes['onmousedown'].value}"
+
onmousemove="#{richFileUploadBean.attributes['onmousemove'].value}"
+
onmouseout="#{richFileUploadBean.attributes['onmouseout'].value}"
+
onmouseover="#{richFileUploadBean.attributes['onmouseover'].value}"
+
onmouseup="#{richFileUploadBean.attributes['onmouseup'].value}"
+
ontyperejected="#{richFileUploadBean.attributes['ontyperejected'].value}"
+
onuploadcomplete="#{richFileUploadBean.attributes['onuploadcomplete'].value}"
+ render="#{richFileUploadBean.attributes['render'].value}"
+
rendered="#{richFileUploadBean.attributes['rendered'].value}"
+
serverErrorLabel="#{richFileUploadBean.attributes['serverErrorLabel'].value}"
+
sizeExceededLabel="#{richFileUploadBean.attributes['sizeExceededLabel'].value}"
+ status="#{richFileUploadBean.attributes['status'].value}"
style="#{richFileUploadBean.attributes['style'].value}"
+
styleClass="#{richFileUploadBean.attributes['styleClass'].value}"
+ title="#{richFileUploadBean.attributes['title'].value}"
+
uploadLabel="#{richFileUploadBean.attributes['uploadLabel'].value}"
/>
- <br/>
- <fieldset style="width: 376px;">
- <legend>Uploaded Files</legend>
- <a4j:outputPanel id="uploadedFilesPanel"
ajaxRendered="true">
- <ul>
- <a4j:repeat value="#{richFileUploadBean.items}"
var="item">
- <li>#{item.name}</li>
- </a4j:repeat>
- </ul>
+ <br />
+ <fieldset style="width: 376px;">
+ <legend>Uploaded Files</legend>
+ <a4j:outputPanel id="uploadedFilesPanel"
ajaxRendered="true">
+ <ul>
+ <a4j:repeat value="#{richFileUploadBean.items}"
var="item">
+ <li>#{item.name}</li>
+ </a4j:repeat>
+ </ul>
- <br/>
+ <br />
- <a4j:commandButton id="clearUploadedDataButton"
-
action="#{richFileUploadBean.clearUploadedData}"
- value="Clear Uploaded Data"
-
rendered="#{richFileUploadBean.renderButton}" />
- </a4j:outputPanel>
- </fieldset>
+ <a4j:commandButton id="clearUploadedDataButton"
action="#{richFileUploadBean.clearUploadedData}"
+ value="Clear Uploaded Data"
rendered="#{richFileUploadBean.renderButton}" />
+ </a4j:outputPanel>
+ </fieldset>
- </ui:define>
+ </ui:define>
- <ui:define name="outOfTemplateAfter">
- <metamer:attributes value="#{richFileUploadBean.attributes}"
id="attributes" render="log"/>
- </ui:define>
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richFileUploadBean.attributes}"
id="attributes" render="log" />
+ </ui:define>
- </ui:composition>
+</ui:composition>
</html>
\ No newline at end of file