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/08/17 14:58:23 UTC

svn commit: r1756642 - in /myfaces/tobago/trunk: tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/ tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/

Author: lofwyr
Date: Wed Aug 17 14:58:23 2016
New Revision: 1756642

URL: http://svn.apache.org/viewvc?rev=1756642&view=rev
Log:
TOBAGO-1586: File upload should work with AJAX

Modified:
    myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FileRenderer.java

Modified: myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml?rev=1756642&r1=1756641&r2=1756642&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/100-upload/upload.xhtml Wed Aug 17 14:58:23 2016
@@ -85,7 +85,7 @@
     <p>The Ajax feature of file upload currently works with JSF 2.2 only!</p>
 
     <tc:file label="Ajax" value="#{uploadController.fileAjax}">
-      <f:ajax listener="#{uploadController.uploadAjax}" render="s3"/>
+      <f:ajax listener="#{uploadController.uploadAjax}" render="s3 messages"/>
     </tc:file>
 
     <tc:section id="s4" label="Uploaded Files">

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FileRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FileRenderer.java?rev=1756642&r1=1756641&r2=1756642&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FileRenderer.java (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/FileRenderer.java Wed Aug 17 14:58:23 2016
@@ -104,6 +104,8 @@ public class FileRenderer extends LabelL
     } else { // todo: PortletRequest
       LOG.warn("Unsupported request type: " + request.getClass().getName());
     }
+
+    RenderUtils.decodeClientBehaviors(facesContext, component);
   }
 
   @Override