jsf.js_next_gen 4.0.2-beta.7 → 4.0.2-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/window/faces-development.js +25 -21
- package/dist/window/faces-development.js.map +1 -1
- package/dist/window/faces.js +1 -1
- package/dist/window/faces.js.map +1 -1
- package/dist/window/jsf-development.js +25 -21
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.map +1 -1
- package/faulty_response.html +167 -0
- package/package.json +1 -1
- package/src/main/typescript/impl/AjaxImpl.ts +22 -19
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +6 -2
- package/src/main/typescript/test/impl/ImplTest.spec.ts +85 -0
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +3 -5
- package/target/impl/AjaxImpl.js +21 -19
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/xhrCore/XhrRequest.js +4 -2
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/test/impl/ImplTest.spec.js +64 -0
- package/target/test/impl/ImplTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js +2 -2
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
|
@@ -4447,13 +4447,14 @@ var Implementation;
|
|
|
4447
4447
|
// we can use our lazy stream each functionality to run our chain here.
|
|
4448
4448
|
// by passing a boolean as return value into the onElem call
|
|
4449
4449
|
// we can stop early at the first false, just like the spec requests
|
|
4450
|
-
let ret;
|
|
4450
|
+
let ret = true;
|
|
4451
4451
|
funcs.every(func => {
|
|
4452
4452
|
let returnVal = resolveAndExecute(source, event, func);
|
|
4453
|
-
if (returnVal
|
|
4454
|
-
ret =
|
|
4453
|
+
if (returnVal === false) {
|
|
4454
|
+
ret = false;
|
|
4455
4455
|
}
|
|
4456
|
-
|
|
4456
|
+
//we short circuit in case of false and break the every loop
|
|
4457
|
+
return ret;
|
|
4457
4458
|
});
|
|
4458
4459
|
return ret;
|
|
4459
4460
|
}
|
|
@@ -4839,13 +4840,14 @@ var Implementation;
|
|
|
4839
4840
|
}
|
|
4840
4841
|
}
|
|
4841
4842
|
/**
|
|
4842
|
-
* transforms the user values to the expected
|
|
4843
|
-
*
|
|
4844
|
-
* (
|
|
4845
|
-
*
|
|
4843
|
+
* transforms the user values to the expected values
|
|
4844
|
+
* handling '@none', '@all', '@form', and '@this' appropriately.
|
|
4845
|
+
* (Note: Although we could employ a simple string replacement method,
|
|
4846
|
+
* it could result in duplicate entries under certain conditions.)
|
|
4846
4847
|
*
|
|
4847
|
-
*
|
|
4848
|
-
*
|
|
4848
|
+
* Specific standardized constants such as
|
|
4849
|
+
* '@all', '@none', '@form', and '@this'
|
|
4850
|
+
* require special treatment.
|
|
4849
4851
|
*
|
|
4850
4852
|
* @param targetConfig the target configuration receiving the final values
|
|
4851
4853
|
* @param targetKey the target key
|
|
@@ -4940,15 +4942,14 @@ var Implementation;
|
|
|
4940
4942
|
return targetConfig;
|
|
4941
4943
|
}
|
|
4942
4944
|
/**
|
|
4943
|
-
*
|
|
4944
|
-
*
|
|
4945
|
+
* Filters the provided options using a blacklist to ensure
|
|
4946
|
+
* only pass-through parameters are processed for the Ajax request.
|
|
4945
4947
|
*
|
|
4946
|
-
* Note this is
|
|
4947
|
-
*
|
|
4948
|
-
*
|
|
4949
|
-
* it breaks any legacy code
|
|
4948
|
+
* Note that this issue is leftover from a previous implementation.
|
|
4949
|
+
* The specification-conforming behavior is to use parameters for pass-through values.
|
|
4950
|
+
* This will be addressed soon, after confirming that removal won't break any legacy code.
|
|
4950
4951
|
*
|
|
4951
|
-
* @param {Context} mappedOpts
|
|
4952
|
+
* @param {Context} mappedOpts - The options to be filtered.
|
|
4952
4953
|
*/
|
|
4953
4954
|
function extractLegacyParams(mappedOpts) {
|
|
4954
4955
|
//we now can use the full code reduction given by our stream api
|
|
@@ -4958,8 +4959,9 @@ var Implementation;
|
|
|
4958
4959
|
.reduce(collectAssoc, {});
|
|
4959
4960
|
}
|
|
4960
4961
|
/**
|
|
4961
|
-
*
|
|
4962
|
-
*
|
|
4962
|
+
* Extracts the MyFaces configuration parameters
|
|
4963
|
+
* that augment JSF with additional functionality.
|
|
4964
|
+
*
|
|
4963
4965
|
* @param mappedOpts
|
|
4964
4966
|
* @private
|
|
4965
4967
|
*/
|
|
@@ -8349,10 +8351,10 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8349
8351
|
const type = issuingItem.type.orElse("").value.toLowerCase();
|
|
8350
8352
|
//Checkbox and radio only value pass if checked is set, otherwise they should not show
|
|
8351
8353
|
//up at all, and if checked is set, they either can have a value or simply being boolean
|
|
8352
|
-
if ((type ==
|
|
8354
|
+
if ((type == XhrRequest.TYPE_CHECKBOX || type == XhrRequest.TYPE_RADIO) && !issuingItem.checked) {
|
|
8353
8355
|
return;
|
|
8354
8356
|
}
|
|
8355
|
-
else if ((type ==
|
|
8357
|
+
else if ((type == XhrRequest.TYPE_CHECKBOX || type == XhrRequest.TYPE_RADIO)) {
|
|
8356
8358
|
arr.assign(issuingItemId).value = itemValue.orElse(true).value;
|
|
8357
8359
|
}
|
|
8358
8360
|
else if (itemValue.isPresent()) {
|
|
@@ -8363,6 +8365,8 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8363
8365
|
}
|
|
8364
8366
|
}
|
|
8365
8367
|
exports.XhrRequest = XhrRequest;
|
|
8368
|
+
XhrRequest.TYPE_CHECKBOX = "checkbox";
|
|
8369
|
+
XhrRequest.TYPE_RADIO = "radio";
|
|
8366
8370
|
|
|
8367
8371
|
|
|
8368
8372
|
/***/ }),
|