Author: abelevich
Date: 2008-07-29 08:21:18 -0400 (Tue, 29 Jul 2008)
New Revision: 9813
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
Log:
https://jira.jboss.org/jira/browse/RF-4025
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java
===================================================================
---
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java 2008-07-29
11:46:43 UTC (rev 9812)
+++
trunk/framework/impl/src/main/java/org/ajax4jsf/renderkit/AjaxRendererUtils.java 2008-07-29
12:21:18 UTC (rev 9813)
@@ -116,6 +116,10 @@
public static final String AJAX_DELAY_ATTR = "requestDelay";
public static final String AJAX_ABORT_ATTR = "ignoreDupResponses";
+
+ public static final String AJAX_PROCESS_ATTR = "process";
+
+ public static final String AJAX_PROCESS_PARAMETER_NAME = "process";
public static final String AJAX_SINGLE_PARAMETER_NAME = "ajaxSingle";
@@ -218,7 +222,10 @@
// control )
if (ajaxSingle ) {
parameters.put(AJAX_SINGLE_PARAMETER_NAME,
targetComponent.getClientId(facesContext));
-// options.put("single", JSReference.TRUE);
+ if (componentAttributes.get(AJAX_PROCESS_ATTR) != null) {
+ parameters.put(AJAX_PROCESS_PARAMETER_NAME, true);
+ }
+ // options.put("single", JSReference.TRUE);
if (input) {
options.put("control", JSReference.THIS);
}
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2008-07-29 11:46:43 UTC
(rev 9812)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2008-07-29 12:21:18 UTC
(rev 9813)
@@ -774,12 +774,21 @@
tosend.appendControl(options.control,true);
};
- var single;
+ var hiddenOnly;
if(options.parameters){
tosend.appendParameters(options.parameters);
- single = options.parameters.ajaxSingle;
+ var single = options.parameters.ajaxSingle;
+ var process = options.parameters.process;
+
+ // send hidden controls if only 'ajaxSingle' set RF-4025
+ if (single && !process) {
+ hiddenOnly = true;
+ } else {
+ hiddenOnly = false;
+ }
};
- tosend.appendFormControls(single);
+ tosend.appendFormControls(hiddenOnly);
+
if(options.eventsCount){
tosend.appendParameter("AJAX:EVENTS_COUNT",options.eventsCount);
};