Author: nbelaevski
Date: 2008-04-15 17:47:42 -0400 (Tue, 15 Apr 2008)
New Revision: 7853
Modified:
trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
Form elements not cleaned after submit - fixed
FileUpload: always use _JSFFormSubmit() function
Modified: trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js
===================================================================
---
trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-15
21:34:44 UTC (rev 7852)
+++
trunk/framework/impl/src/main/resources/org/ajax4jsf/javascript/scripts/form.js 2008-04-15
21:47:42 UTC (rev 7853)
@@ -30,6 +30,7 @@
} else {
var input = document.createElement("input");
input.type="hidden";
+ input.id=param;
input.name=param;
input.value=parameters[param];
form.appendChild(input);
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-04-15
21:34:44 UTC (rev 7852)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-04-15
21:47:42 UTC (rev 7853)
@@ -974,12 +974,8 @@
function (state) {
this.updateViewState(state);
}.bind(this));
- if (this.parameters) {
- _JSFFormSubmit(null, parentForm.id, null, this.parameters);
- //parentForm.submit();
- }else {
- parentForm.submit();
- }
+
+ _JSFFormSubmit(null, parentForm.id, null, this.parameters);
}
for (var i = 0; i < l; i++) {
Show replies by date