Author: mvitenkov
Date: 2008-07-18 04:16:41 -0400 (Fri, 18 Jul 2008)
New Revision: 9671
Modified:
trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml
Log:
Modified: trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml 2008-07-18
08:16:08 UTC (rev 9670)
+++
trunk/test-applications/facelets/src/main/webapp/FileUpload/FileUpload.xhtml 2008-07-18
08:16:41 UTC (rev 9671)
@@ -4,7 +4,7 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich" id="FileUploadSubviewID">
- <rich:fileUpload id="fileUploadID"
disabled="#{fileUpload.disabled}"
+ <rich:fileUpload allowFlash="#{fileUpload.allowFlash}"
id="fileUploadID" disabled="#{fileUpload.disabled}"
autoclear="#{fileUpload.autoclear}"
required="#{fileUpload.required}"
requiredMessage="#{fileUpload.requiredMessage}"
rendered="#{fileUpload.rendered}"
@@ -46,7 +46,15 @@
<h:outputText value="required"></h:outputText>
<h:selectBooleanCheckbox value="#{fileUpload.required}"
onchange="submit();"></h:selectBooleanCheckbox>
-
+
+ <h:outputText value="allowFlash" />
+ <h:selectOneRadio value="#{fileUpload.allowFlash}">
+ <f:selectItem itemValue="true" itemLabel="true" />
+ <f:selectItem itemValue="false" itemLabel="false" />
+ <f:selectItem itemValue="auto" itemLabel="auto" />
+ <a4j:support event="onchange"
reRender="fileUploadID"></a4j:support>
+ </h:selectOneRadio>
+
<h:outputText value="requiredMessage"></h:outputText>
<h:inputText value="#{fileUpload.requiredMessage}"
onchange="submit();"></h:inputText>
@@ -56,17 +64,5 @@
<h:outputText
value="#{fileUpload.upload.file.name}"></h:outputText>
</h:panelGrid>
- </h:panelGrid>
- <br />
- <br />
- <div style="FONT-WEIGHT: bold;">rich:findComponent</div>
- <h:panelGrid columns="2">
- <rich:column>
- <a4j:commandLink value="getFileName"
reRender="findID"></a4j:commandLink>
- </rich:column>
- <rich:column id="findID">
- <h:outputText
- value="#{rich:findComponent('fileUploadID').uploadData[0].fileName}"
/>
- </rich:column>
- </h:panelGrid>
+ </h:panelGrid>
</f:subview>
\ No newline at end of file