You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/01/21 11:43:02 UTC
svn commit: r1725900 -
/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-upload/upload.xhtml
Author: lofwyr
Date: Thu Jan 21 10:43:01 2016
New Revision: 1725900
URL: http://svn.apache.org/viewvc?rev=1725900&view=rev
Log:
upload with validation
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-upload/upload.xhtml
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-upload/upload.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-upload/upload.xhtml?rev=1725900&r1=1725899&r2=1725900&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-upload/upload.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/40-upload/upload.xhtml Thu Jan 21 10:43:01 2016
@@ -35,18 +35,12 @@
<tx:file label="Upload file:" value="#{upload.file}" tip="without extra validation"/>
<tc:button label="Submit" defaultCommand="true" action="#{upload.upload}"/>
- </tc:panel>
-
- <tc:panel>
- <f:facet name="layout">
- <tc:gridLayout columns="*;auto"/>
- </f:facet>
<tx:file label="Upload image:" value="#{upload.file}"
tip="with a validator for file items - types: gif, jpg, png">
<tc:validateFileItem contentType="image/*"/>
</tx:file>
- <tc:button label="Submit" action="#{upload.upload}"/>
+ <tc:panel/>
</tc:panel>
<tc:sheet var="entry" value="#{upload.list}" columns="*;*;*">