jsf.js_next_gen 4.0.4-beta.6 → 4.0.4-beta.7
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/docs/functions/myfaces.ab.html +8 -3
- package/dist/main.js +14 -0
- package/dist/window/faces-development.js +18 -4
- 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 +18 -4
- 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/remap.js +1 -0
- package/src/main/typescript/@types/definitions/index.d.ts +1 -1
- package/src/main/typescript/api/_api.ts +29 -13
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +1 -1
- package/src/main/typescript/test/api/MyFacesABTest.spec.ts +117 -0
- package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +1 -1
- package/src/main/typescript/test/xhrCore/EventTests.spec.ts +1 -1
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +1 -1
- package/target/api/_api.js +17 -3
- package/target/api/_api.js.map +1 -1
- package/target/impl/xhrCore/ErrorData.js +1 -1
- package/target/impl/xhrCore/ErrorData.js.map +1 -1
- package/target/test/api/MyFacesABTest.spec.js +117 -0
- package/target/test/api/MyFacesABTest.spec.js.map +1 -0
- package/target/test/xhrCore/ErrorChainTest.spec.js +1 -1
- package/target/test/xhrCore/EventTests.spec.js +1 -1
- package/target/test/xhrCore/EventTests.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/webpack.config.js +2 -2
- package/webpack.config.js.map +1 -1
- package/webpack.config.ts +2 -2
- package/faulty_response.html +0 -167
- package/pom.xml +0 -68
- package/target/classes/application.properties +0 -1
- package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +0 -4
- package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +0 -4
- package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +0 -1
- package/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +0 -1
- package/target/surefire-reports/TEST-com.example.jsfs_js_ts.JsfsJsTsApplicationTests.xml +0 -76
- package/target/surefire-reports/com.example.jsfs_js_ts.JsfsJsTsApplicationTests.txt +0 -7
- package/target/test-classes/.gz +0 -0
- package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
- package/target/test-classes/fileuploadtest.html +0 -24
- package/target/test-classes/jsf-development.js +0 -3559
- package/target/test-classes/jsf-development.js.br +0 -0
- package/target/test-classes/jsf-development.js.gz +0 -0
- package/target/test-classes/jsf-development.js.map +0 -1
- package/target/test-classes/jsf.js +0 -3
- package/target/test-classes/jsf.js.br +0 -0
- package/target/test-classes/jsf.js.gz +0 -0
|
@@ -4202,13 +4202,20 @@ var myfaces;
|
|
|
4202
4202
|
*
|
|
4203
4203
|
* @param source the event source
|
|
4204
4204
|
* @param event the event
|
|
4205
|
-
* @param eventName event name for java.jakarta.faces.behavior.
|
|
4205
|
+
* @param eventName event name for java.jakarta.faces.behavior.event
|
|
4206
4206
|
* @param execute execute list as passed down in faces.ajax.request
|
|
4207
4207
|
* @param render the render list as string
|
|
4208
|
-
* @param options the options which need to be
|
|
4208
|
+
* @param options the options which need to be merged in
|
|
4209
|
+
* @param userParameters a set of user parameters which go into the final options under params, they can overide whatever is passed via options
|
|
4209
4210
|
*/
|
|
4210
|
-
function ab(source, event, eventName, execute, render, options = {}) {
|
|
4211
|
+
function ab(source, event, eventName, execute, render, options = {}, userParameters = {}) {
|
|
4211
4212
|
var _a, _b;
|
|
4213
|
+
if (!options) {
|
|
4214
|
+
options = {};
|
|
4215
|
+
}
|
|
4216
|
+
if (!userParameters) {
|
|
4217
|
+
userParameters = {};
|
|
4218
|
+
}
|
|
4212
4219
|
if (eventName) {
|
|
4213
4220
|
options[Const_1.CTX_OPTIONS_PARAMS] = (_a = options === null || options === void 0 ? void 0 : options[Const_1.CTX_OPTIONS_PARAMS]) !== null && _a !== void 0 ? _a : {};
|
|
4214
4221
|
options[Const_1.CTX_OPTIONS_PARAMS][(0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)] = eventName;
|
|
@@ -4219,6 +4226,13 @@ var myfaces;
|
|
|
4219
4226
|
if (render) {
|
|
4220
4227
|
options[Const_1.CTX_PARAM_RENDER] = render;
|
|
4221
4228
|
}
|
|
4229
|
+
//we push the users parameters in
|
|
4230
|
+
if (!options["params"]) {
|
|
4231
|
+
options["params"] = {};
|
|
4232
|
+
}
|
|
4233
|
+
for (let key in userParameters) {
|
|
4234
|
+
options["params"][key] = userParameters[key];
|
|
4235
|
+
}
|
|
4222
4236
|
((_b = window === null || window === void 0 ? void 0 : window.faces) !== null && _b !== void 0 ? _b : window.jsf).ajax.request(source, event, options);
|
|
4223
4237
|
}
|
|
4224
4238
|
myfaces.ab = ab;
|
|
@@ -6788,7 +6802,7 @@ class ErrorData extends EventData_1.EventData {
|
|
|
6788
6802
|
this.type = Const_1.ERROR;
|
|
6789
6803
|
this.errorName = errorName;
|
|
6790
6804
|
//tck requires that the type is prefixed to the message itself (jsdoc also) in case of a server error
|
|
6791
|
-
this.errorMessage = errorMessage;
|
|
6805
|
+
this.errorMessage = (type == ErrorType.SERVER_ERROR) ? type + ": " + errorMessage : errorMessage;
|
|
6792
6806
|
this.responseCode = responseCode;
|
|
6793
6807
|
this.responseText = responseText;
|
|
6794
6808
|
this.responseXML = responseXML;
|