jsf.js_next_gen 4.0.0-RC.22 → 4.0.0-RC.24
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 +28 -14
- package/dist/window/faces-development.js.br +0 -0
- package/dist/window/faces-development.js.gz +0 -0
- package/dist/window/faces-development.js.map +1 -1
- package/dist/window/faces.js +1 -1
- package/dist/window/faces.js.br +0 -0
- package/dist/window/faces.js.gz +0 -0
- package/dist/window/faces.js.map +1 -1
- package/dist/window/jsf-development.js +28 -14
- package/dist/window/jsf-development.js.br +0 -0
- package/dist/window/jsf-development.js.gz +0 -0
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.br +0 -0
- package/dist/window/jsf.js.gz +0 -0
- package/dist/window/jsf.js.map +1 -1
- package/package.json +1 -1
- package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +7 -0
- package/src/main/typescript/impl/xhrCore/Response.ts +29 -25
- package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +13 -1
- package/target/impl/xhrCore/Response.js +16 -13
- package/target/impl/xhrCore/Response.js.map +1 -1
- package/target/impl/xhrCore/ResponseProcessor.js +12 -1
- package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
|
@@ -6824,6 +6824,7 @@ var Response;
|
|
|
6824
6824
|
// doing any evaluations even on embedded scripts.
|
|
6825
6825
|
// Usually this does not matter, the client window comes in almost last always anyway
|
|
6826
6826
|
// we maybe drop this deferred assignment in the future, but myfaces did it until now.
|
|
6827
|
+
responseProcessor.updateNamedViewRootState();
|
|
6827
6828
|
responseProcessor.fixViewStates();
|
|
6828
6829
|
responseProcessor.fixClientWindow();
|
|
6829
6830
|
responseProcessor.globalEval();
|
|
@@ -6834,19 +6835,21 @@ var Response;
|
|
|
6834
6835
|
* highest node partial-response from there the main operations are triggered
|
|
6835
6836
|
*/
|
|
6836
6837
|
function processPartialTag(node, responseProcessor, internalContext) {
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
internalContext.assignIf(Const_1.PARTIAL_ID).value =
|
|
6849
|
-
|
|
6838
|
+
/*
|
|
6839
|
+
https://javaee.github.io/javaserverfaces/docs/2.2/javadocs/web-partialresponse.html#ns_xsd
|
|
6840
|
+
The "partial-response" element is the root of the partial response information hierarchy,
|
|
6841
|
+
and contains nested elements for all possible elements that can exist in the response.
|
|
6842
|
+
This element must have an "id" attribute whose value is the return from calling getContainerClientId()
|
|
6843
|
+
on the UIViewRoot to which this response pertains.
|
|
6844
|
+
*/
|
|
6845
|
+
// we can determine whether we are in a naming container scenario by checking whether the passed view id is present in the page
|
|
6846
|
+
// under or in body as identifier
|
|
6847
|
+
var _a;
|
|
6848
|
+
let partialId = (_a = node === null || node === void 0 ? void 0 : node.id) === null || _a === void 0 ? void 0 : _a.value;
|
|
6849
|
+
internalContext.assignIf(!!partialId, Const_1.PARTIAL_ID).value = partialId; // second case mojarra
|
|
6850
|
+
// there must be at least one container viewstate element resembling the viewroot that we know
|
|
6851
|
+
// this is named
|
|
6852
|
+
responseProcessor.updateNamedViewRootState();
|
|
6850
6853
|
const SEL_SUB_TAGS = [Const_1.XML_TAG_ERROR, Const_1.XML_TAG_REDIRECT, Const_1.XML_TAG_CHANGES].join(",");
|
|
6851
6854
|
// now we can process the main operations
|
|
6852
6855
|
node.querySelectorAll(SEL_SUB_TAGS).each((node) => {
|
|
@@ -7241,7 +7244,7 @@ class ResponseProcessor {
|
|
|
7241
7244
|
mona_dish_1.Stream.ofAssoc(this.internalContext.getIf(Const_1.APPLIED_VST).orElse({}).value)
|
|
7242
7245
|
.each(([, value]) => {
|
|
7243
7246
|
const namingContainerId = this.internalContext.getIf(Const_1.PARTIAL_ID);
|
|
7244
|
-
const namedViewRoot = !!this.internalContext.getIf(Const_1.
|
|
7247
|
+
const namedViewRoot = !!this.internalContext.getIf(Const_1.NAMED_VIEWROOT).value;
|
|
7245
7248
|
const affectedForms = this.getContainerForms(namingContainerId)
|
|
7246
7249
|
.filter(affectedForm => this.isInExecuteOrRender(affectedForm));
|
|
7247
7250
|
this.appendViewStateToForms(affectedForms, namedViewRoot, value.value, namingContainerId.orElse("").value);
|
|
@@ -7261,6 +7264,17 @@ class ResponseProcessor {
|
|
|
7261
7264
|
this.appendClientWindowToForms(affectedForms, namedViewRoot, value.value, namingContainerId.orElse("").value);
|
|
7262
7265
|
});
|
|
7263
7266
|
}
|
|
7267
|
+
updateNamedViewRootState() {
|
|
7268
|
+
let partialId = this.internalContext.getIf(Const_1.PARTIAL_ID);
|
|
7269
|
+
let namedViewRoot = this.internalContext.getIf(Const_1.NAMED_VIEWROOT);
|
|
7270
|
+
if (partialId.isPresent() &&
|
|
7271
|
+
(namedViewRoot.isAbsent() ||
|
|
7272
|
+
!namedViewRoot.value)) {
|
|
7273
|
+
const SEP = (0, Const_1.$faces)().separatorchar;
|
|
7274
|
+
this.internalContext.assign(Const_1.NAMED_VIEWROOT).value = (!!document.getElementById(partialId.value)) || (0, mona_dish_1.DQ$)(`input[name*='${(0, Const_1.$nsp)(Const_1.P_VIEWSTATE)}']`)
|
|
7275
|
+
.filter(node => node.attr("name").value.indexOf(partialId.value + SEP) == 0).length > 0;
|
|
7276
|
+
}
|
|
7277
|
+
}
|
|
7264
7278
|
/**
|
|
7265
7279
|
* all processing done we can close the request and send the appropriate events
|
|
7266
7280
|
*/
|
|
Binary file
|
|
Binary file
|