Author: nbelaevski
Date: 2010-06-09 10:04:16 -0400 (Wed, 09 Jun 2010)
New Revision: 17583
Modified:
root/core/branches/richfaces-core-4.0.0.Alpha2/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
https://jira.jboss.org/browse/RF-8744
Modified:
root/core/branches/richfaces-core-4.0.0.Alpha2/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
---
root/core/branches/richfaces-core-4.0.0.Alpha2/impl/src/main/resources/META-INF/resources/richfaces.js 2010-06-09
13:52:44 UTC (rev 17582)
+++
root/core/branches/richfaces-core-4.0.0.Alpha2/impl/src/main/resources/META-INF/resources/richfaces.js 2010-06-09
14:04:16 UTC (rev 17583)
@@ -560,6 +560,7 @@
richfaces.ajax = function(source, event, options) {
var sourceId = (typeof source == 'object' && source.id) ? source.id :
source;
+ var sourceElt = (typeof source == 'object') ? source :
document.getElementById(sourceId);
options = options || {};
@@ -599,7 +600,9 @@
}
}
- parameters[sourceId] = sourceId;
+ if (!jQuery(sourceElt).is('input, select, textarea')) {
+ parameters[sourceId] = sourceId;
+ }
if (eventHandlers) {
var eventsAdapter = richfaces.createJSFEventsAdapter(eventHandlers);