jsf.js_next_gen 4.0.3-beta.1 → 4.0.3-beta.2
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 +10 -2
- 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 +10 -2
- 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/package.json +1 -1
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +8 -4
- package/target/impl/xhrCore/XhrRequest.js +4 -1
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
|
@@ -8369,8 +8369,11 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8369
8369
|
}
|
|
8370
8370
|
appendIssuingItem(formData) {
|
|
8371
8371
|
const issuingItemId = this.internalContext.getIf(Const_1.CTX_PARAM_SRC_CTL_ID).value;
|
|
8372
|
+
//to avoid sideffects with buttons we only can append the issuing item if no behavior event is set
|
|
8373
|
+
//MYFACES-4679!
|
|
8374
|
+
const isBehaviorEvent = !!formData.getIf((0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)).value;
|
|
8372
8375
|
//not encoded
|
|
8373
|
-
if (issuingItemId && formData.getIf(issuingItemId).isAbsent()) {
|
|
8376
|
+
if (issuingItemId && formData.getIf(issuingItemId).isAbsent() && !isBehaviorEvent) {
|
|
8374
8377
|
const issuingItem = mona_dish_1.DQ.byId(issuingItemId);
|
|
8375
8378
|
const itemValue = issuingItem.inputValue;
|
|
8376
8379
|
const arr = new ExtDomQuery_1.ExtConfig({});
|
|
@@ -8383,7 +8386,9 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8383
8386
|
else if ((type == XhrRequest.TYPE_CHECKBOX || type == XhrRequest.TYPE_RADIO)) {
|
|
8384
8387
|
arr.assign(issuingItemId).value = itemValue.orElse(true).value;
|
|
8385
8388
|
}
|
|
8386
|
-
else if (itemValue.isPresent()
|
|
8389
|
+
else if (itemValue.isPresent() && (type == XhrRequest.TYPE_BUTTON ||
|
|
8390
|
+
type == XhrRequest.TYPE_SUBMIT ||
|
|
8391
|
+
type == XhrRequest.TYPE_LINK)) {
|
|
8387
8392
|
arr.assign(issuingItemId).value = itemValue.value;
|
|
8388
8393
|
}
|
|
8389
8394
|
formData.shallowMerge(arr, true, true);
|
|
@@ -8393,6 +8398,9 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
|
|
|
8393
8398
|
exports.XhrRequest = XhrRequest;
|
|
8394
8399
|
XhrRequest.TYPE_CHECKBOX = "checkbox";
|
|
8395
8400
|
XhrRequest.TYPE_RADIO = "radio";
|
|
8401
|
+
XhrRequest.TYPE_BUTTON = "button";
|
|
8402
|
+
XhrRequest.TYPE_SUBMIT = "submit";
|
|
8403
|
+
XhrRequest.TYPE_LINK = "a";
|
|
8396
8404
|
|
|
8397
8405
|
|
|
8398
8406
|
/***/ }),
|