You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2010/11/28 19:42:54 UTC

svn commit: r1039921 - /wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.html

Author: mgrigorov
Date: Sun Nov 28 18:42:54 2010
New Revision: 1039921

URL: http://svn.apache.org/viewvc?rev=1039921&view=rev
Log:
Remove the HTMLElement id from the markup for the 'file' fields.
Since recently Wicket uses the markup to get the component markupId and both fields have the same markup id in DOM. Later when the second form is submitted progressbar.js checks whether the value of the *first* file field is different than '' and thus never starts to check for progress status.

Modified:
    wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.html

Modified: wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.html
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.html?rev=1039921&r1=1039920&r2=1039921&view=diff
==============================================================================
--- wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.html (original)
+++ wicket/trunk/wicket-examples/src/main/java/org/apache/wicket/examples/upload/UploadPage.html Sun Nov 28 18:42:54 2010
@@ -17,7 +17,7 @@
 	  <legend>Upload form</legend>
     	<p>
 	    <label for="upload">File</label>
-	    <input wicket:id="fileInput" id="upload" type="file"/>
+	    <input wicket:id="fileInput" type="file"/>
 	    </p>
 	    <input type="submit" value="Upload!"/>
 	 </fieldset>
@@ -28,7 +28,7 @@
 	  <legend>Upload form with ajax progress bar</legend>
     	<p>
 	    <label for="upload">File</label>
-	    <input wicket:id="fileInput" id="upload" type="file"/>
+	    <input wicket:id="fileInput" type="file"/>
 	    </p>
 	    <input type="submit" value="Upload!"/>
 	    <span wicket:id="progress">[[ajax upload progressbar]]</span>