jsf.js_next_gen 1.0.0-beta-20 → 4.0.0-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.
Files changed (138) hide show
  1. package/.nyc_output/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
  2. package/.nyc_output/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
  3. package/.nyc_output/processinfo/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
  4. package/.nyc_output/processinfo/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
  5. package/.nyc_output/processinfo/index.json +1 -0
  6. package/README.md +12 -0
  7. package/dist/docs/assets/search.js +1 -1
  8. package/dist/docs/functions/{jsf.ajax.addOnError.html → faces.ajax.addOnError.html} +11 -11
  9. package/dist/docs/functions/{jsf.ajax.addOnEvent.html → faces.ajax.addOnEvent.html} +11 -11
  10. package/dist/docs/functions/{jsf.ajax.request.html → faces.ajax.request.html} +11 -11
  11. package/dist/docs/functions/{jsf.ajax.response.html → faces.ajax.response.html} +11 -11
  12. package/dist/docs/functions/{jsf.getClientWindow.html → faces.getClientWindow.html} +12 -12
  13. package/dist/docs/functions/{jsf.getProjectStage.html → faces.getProjectStage.html} +13 -13
  14. package/dist/docs/functions/{jsf.getViewState.html → faces.getViewState.html} +13 -13
  15. package/dist/docs/functions/{jsf.push.close.html → faces.push.close.html} +10 -10
  16. package/dist/docs/functions/{jsf.push.init.html → faces.push.init.html} +10 -10
  17. package/dist/docs/functions/{jsf.push.open.html → faces.push.open.html} +10 -10
  18. package/dist/docs/functions/{jsf.util.chain.html → faces.util.chain.html} +8 -8
  19. package/dist/docs/functions/myfaces.ab.html +6 -6
  20. package/dist/docs/index.html +13 -4
  21. package/dist/docs/modules/{jsf.ajax.html → faces.ajax.html} +14 -14
  22. package/dist/docs/modules/{jsf.html → faces.html} +22 -22
  23. package/dist/docs/modules/{jsf.push.html → faces.push.html} +12 -12
  24. package/dist/docs/modules/{jsf.util.html → faces.util.html} +8 -8
  25. package/dist/docs/modules/myfaces.html +4 -4
  26. package/dist/docs/modules.html +5 -5
  27. package/dist/docs/variables/{jsf.implversion.html → faces.implversion.html} +12 -12
  28. package/dist/docs/variables/{jsf.separatorchar.html → faces.separatorchar.html} +12 -12
  29. package/dist/docs/variables/{jsf.specversion.html → faces.specversion.html} +13 -13
  30. package/dist/docs/variables/myfaces.oam.html +4 -4
  31. package/dist/window/faces-development.js +7695 -0
  32. package/dist/window/faces-development.js.br +0 -0
  33. package/dist/window/faces-development.js.gz +0 -0
  34. package/dist/window/faces-development.js.map +1 -0
  35. package/dist/window/faces.js +2 -0
  36. package/dist/window/faces.js.br +0 -0
  37. package/dist/window/faces.js.gz +0 -0
  38. package/dist/window/faces.js.map +1 -0
  39. package/dist/window/jsf-development.js +192 -102
  40. package/dist/window/jsf-development.js.br +0 -0
  41. package/dist/window/jsf-development.js.gz +0 -0
  42. package/dist/window/jsf-development.js.map +1 -1
  43. package/dist/window/jsf.js +1 -1
  44. package/dist/window/jsf.js.br +0 -0
  45. package/dist/window/jsf.js.gz +0 -0
  46. package/dist/window/jsf.js.map +1 -1
  47. package/package.json +2 -2
  48. package/src/main/types/typedefs.d.ts +2 -0
  49. package/src/main/typescript/api/{Jsf.ts → faces.ts} +14 -10
  50. package/src/main/typescript/api/jsf.ts +30 -0
  51. package/src/main/typescript/impl/AjaxImpl.ts +17 -15
  52. package/src/main/typescript/impl/PushImpl.ts +3 -3
  53. package/src/main/typescript/impl/core/Const.ts +52 -14
  54. package/src/main/typescript/impl/i18n/Messages.ts +1 -1
  55. package/src/main/typescript/impl/util/Assertions.ts +1 -1
  56. package/src/main/typescript/impl/util/ExtDomQuery.ts +32 -21
  57. package/src/main/typescript/impl/xhrCore/EventData.ts +2 -1
  58. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +1 -1
  59. package/src/main/typescript/impl/xhrCore/Response.ts +2 -2
  60. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +4 -2
  61. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +2 -2
  62. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +4 -5
  63. package/src/main/typescript/myfaces/OamSubmit.ts +0 -1
  64. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +58 -27
  65. package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +4 -4
  66. package/src/main/typescript/test/impl/ImplTest.spec.ts +12 -12
  67. package/src/main/typescript/test/impl/ImplTest_23.spec.ts +134 -0
  68. package/src/main/typescript/test/impl/SeparatorCharsTest.spec.ts +6 -3
  69. package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +1 -1
  70. package/src/main/typescript/test/xhrCore/EventTests.spec.ts +7 -7
  71. package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +5 -5
  72. package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +22 -22
  73. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +11 -11
  74. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +26 -26
  75. package/src/main/typescript/test/xhrCore/ShadowDomTest.spec.ts +3 -5
  76. package/src/main/typescript/test/xhrCore/WebsocketTest.ts +8 -8
  77. package/src/main/typescript/tsconfig-typedoc.json +1 -1
  78. package/src/test/resources/jsf-development.js +1 -1
  79. package/target/api/Jsf.js +16 -244
  80. package/target/api/Jsf.js.map +1 -1
  81. package/target/api/faces.js +265 -0
  82. package/target/api/faces.js.map +1 -0
  83. package/target/impl/AjaxImpl.js +14 -13
  84. package/target/impl/AjaxImpl.js.map +1 -1
  85. package/target/impl/PushImpl.js +3 -3
  86. package/target/impl/PushImpl.js.map +1 -1
  87. package/target/impl/core/Const.js +51 -14
  88. package/target/impl/core/Const.js.map +1 -1
  89. package/target/impl/i18n/Messages.js +1 -1
  90. package/target/impl/i18n/Messages.js.map +1 -1
  91. package/target/impl/util/Assertions.js +1 -1
  92. package/target/impl/util/Assertions.js.map +1 -1
  93. package/target/impl/util/ExtDomQuery.js +27 -16
  94. package/target/impl/util/ExtDomQuery.js.map +1 -1
  95. package/target/impl/xhrCore/EventData.js +2 -1
  96. package/target/impl/xhrCore/EventData.js.map +1 -1
  97. package/target/impl/xhrCore/RequestDataResolver.js +1 -1
  98. package/target/impl/xhrCore/Response.js +2 -2
  99. package/target/impl/xhrCore/ResponseProcessor.js +10 -10
  100. package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
  101. package/target/impl/xhrCore/XhrFormData.js +2 -2
  102. package/target/impl/xhrCore/XhrRequest.js +4 -3
  103. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  104. package/target/myfaces/OamSubmit.js +0 -1
  105. package/target/myfaces/OamSubmit.js.map +1 -1
  106. package/target/test/frameworkBase/_ext/shared/StandardInits.js +63 -25
  107. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  108. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +4 -4
  109. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
  110. package/target/test/impl/ImplTest.spec.js +53 -12
  111. package/target/test/impl/ImplTest.spec.js.map +1 -1
  112. package/target/test/impl/ImplTest_23.spec.js +165 -0
  113. package/target/test/impl/ImplTest_23.spec.js.map +1 -0
  114. package/target/test/impl/ImplTest_23.spec_.js +165 -0
  115. package/target/test/impl/ImplTest_23.spec_.js.map +1 -0
  116. package/target/test/impl/SeparatorCharsTest.spec.js +6 -2
  117. package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
  118. package/target/test/queue/AsynchronousQueueTest.spec.js +1 -1
  119. package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
  120. package/target/test/xhrCore/EventTests.spec.js +6 -6
  121. package/target/test/xhrCore/EventTests.spec.js.map +1 -1
  122. package/target/test/xhrCore/FileUploadTest.spec.js +4 -4
  123. package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
  124. package/target/test/xhrCore/RequestParamsTest.spec.js +22 -22
  125. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  126. package/target/test/xhrCore/RequestTest.spec.js +10 -10
  127. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  128. package/target/test/xhrCore/ResponseTest.spec.js +21 -21
  129. package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
  130. package/target/test/xhrCore/ShadowDomTest.spec.js +2 -3
  131. package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
  132. package/target/test/xhrCore/WebsocketTest.js +7 -7
  133. package/target/test/xhrCore/WebsocketTest.js.map +1 -1
  134. package/webpack.config.js +7 -4
  135. package/webpack.config.js.map +1 -1
  136. package/webpack.config.ts +7 -4
  137. package/integrationdeploy.cmd +0 -4
  138. package/integrationsdeploy.sh +0 -5
@@ -25,32 +25,32 @@ import { expect } from "chai";
25
25
  describe("test for proper request param patterns identical to the old implementation", function () {
26
26
  const DELETE_PATTERN = {
27
27
  op: "delete1",
28
- "javax.faces.source": "cmd_delete",
29
- "javax.faces.partial.event": "click",
30
- "javax.faces.partial.ajax": "true",
31
- "javax.faces.partial.execute": "cmd_delete",
28
+ "jakarta.faces.source": "cmd_delete",
29
+ "jakarta.faces.partial.event": "click",
30
+ "jakarta.faces.partial.ajax": "true",
31
+ "jakarta.faces.partial.execute": "cmd_delete",
32
32
  "form1": "form1",
33
- "javax.faces.ViewState": "blubbblubblubb"
33
+ "jakarta.faces.ViewState": "blubbblubblubb"
34
34
  }
35
35
 
36
36
  const UPDATE_INSERT_2 = {
37
37
  "op": "updateinsert2",
38
- "javax.faces.partial.event": "click",
39
- "javax.faces.source": "cmd_update_insert2",
40
- "javax.faces.partial.ajax": "true",
41
- "javax.faces.partial.execute": "cmd_update_insert2",
38
+ "jakarta.faces.partial.event": "click",
39
+ "jakarta.faces.source": "cmd_update_insert2",
40
+ "jakarta.faces.partial.ajax": "true",
41
+ "jakarta.faces.partial.execute": "cmd_update_insert2",
42
42
  "form1": "form1",
43
- "javax.faces.ViewState": "blubbblubblubb"
43
+ "jakarta.faces.ViewState": "blubbblubblubb"
44
44
  }
45
45
 
46
46
  const ERRORS = {
47
47
  "op": "errors",
48
- "javax.faces.partial.event": "click",
49
- "javax.faces.source": "cmd_error",
50
- "javax.faces.partial.ajax": "true",
51
- "javax.faces.partial.execute": "cmd_error",
48
+ "jakarta.faces.partial.event": "click",
49
+ "jakarta.faces.source": "cmd_error",
50
+ "jakarta.faces.partial.ajax": "true",
51
+ "jakarta.faces.partial.execute": "cmd_error",
52
52
  "form1": "form1",
53
- "javax.faces.ViewState": "blubbblubblubb"
53
+ "jakarta.faces.ViewState": "blubbblubblubb"
54
54
  }
55
55
 
56
56
  /**
@@ -83,7 +83,7 @@ describe("test for proper request param patterns identical to the old implementa
83
83
  (<any>global).XMLHttpRequest = this.xhr;
84
84
  (<any>window).XMLHttpRequest = this.xhr;
85
85
 
86
- this.jsfAjaxResponse = sinon.stub((<any>global).jsf.ajax, "response");
86
+ this.jsfAjaxResponse = sinon.stub((<any>global).faces.ajax, "response");
87
87
 
88
88
  this.closeIt = () => {
89
89
  (<any>global).XMLHttpRequest = (<any>window).XMLHttpRequest = this.xhr.restore();
@@ -111,37 +111,37 @@ describe("test for proper request param patterns identical to the old implementa
111
111
 
112
112
  it("must handle base64 encoded strings properly as request data", function() {
113
113
  let probe = "YWFhYWFhc1Rlc3RpdCDDpGtvNDU5NjczMDA9PSsrNDU5MGV3b3UkJiUmLyQmJQ==";
114
- DQ.byId("javax.faces.ViewState").inputValue.value = probe;
114
+ DQ.byId("jakarta.faces.ViewState").inputValue.value = probe;
115
115
  DQ.byId("cmd_update_insert2").click();
116
116
  let requestBody = this.requests[0].requestBody;
117
117
  //We check if the base64 encoded string matches the original
118
118
  let formData = new XhrFormData(requestBody);
119
119
 
120
- expect(decodeURIComponent(formData.getIf("javax.faces.ViewState").value) == probe).to.be.true;
120
+ expect(decodeURIComponent(formData.getIf("jakarta.faces.ViewState").value) == probe).to.be.true;
121
121
  });
122
122
 
123
123
 
124
124
  it("must handle empty parameters properly", function() {
125
125
  let probe = "";
126
- DQ.byId("javax.faces.ViewState").inputValue.value = probe;
126
+ DQ.byId("jakarta.faces.ViewState").inputValue.value = probe;
127
127
  DQ.byId("cmd_update_insert2").click();
128
128
  let requestBody = this.requests[0].requestBody;
129
129
  //We check if the base64 encoded string matches the original
130
130
  let formData = new XhrFormData(requestBody);
131
131
 
132
- expect(decodeURIComponent(formData.getIf("javax.faces.ViewState").value) == probe).to.be.true;
132
+ expect(decodeURIComponent(formData.getIf("jakarta.faces.ViewState").value) == probe).to.be.true;
133
133
  });
134
134
 
135
135
  //KssbpZfCe+0lwDhgMRQ44wRFkaM1o1lbMMUO3lini5YhXWm6
136
136
 
137
137
  it("must handle base64 special cases properly (+ in encoding)", function() {
138
138
  let probe = "KssbpZfCe+0lwDhgMRQ44wRFkaM1o1lbMMUO3lini5YhXWm6";
139
- DQ.byId("javax.faces.ViewState").inputValue.value = probe;
139
+ DQ.byId("jakarta.faces.ViewState").inputValue.value = probe;
140
140
  DQ.byId("cmd_update_insert2").click();
141
141
  let requestBody = this.requests[0].requestBody;
142
142
  //We check if the base64 encoded string matches the original
143
143
  let formData = new XhrFormData(requestBody);
144
144
 
145
- expect(decodeURIComponent(formData.getIf("javax.faces.ViewState").value) == probe).to.be.true;
145
+ expect(decodeURIComponent(formData.getIf("jakarta.faces.ViewState").value) == probe).to.be.true;
146
146
  });
147
147
  });
@@ -32,11 +32,11 @@ import {
32
32
  import defaultMyFaces = StandardInits.defaultMyFaces;
33
33
  import STD_XML = StandardInits.STD_XML;
34
34
 
35
- declare var jsf: any;
35
+ declare var faces: any;
36
36
  declare var Implementation: any;
37
37
 
38
38
  let issueStdReq = function (element) {
39
- jsf.ajax.request(element, null, {
39
+ faces.ajax.request(element, null, {
40
40
  execute: "input_1",
41
41
  render: "@form",
42
42
  pass1: "pass1",
@@ -62,7 +62,7 @@ describe('Tests on the xhr core when it starts to call the request', function ()
62
62
  (<any>global).XMLHttpRequest = this.xhr;
63
63
  (<any>window).XMLHttpRequest = this.xhr;
64
64
 
65
- this.jsfAjaxResponse = sinon.spy((<any>global).jsf.ajax, "response");
65
+ this.jsfAjaxResponse = sinon.spy((<any>global).faces.ajax, "response");
66
66
 
67
67
  this.closeIt = () => {
68
68
  (<any>global).XMLHttpRequest = (<any>window).XMLHttpRequest = this.xhr.restore();
@@ -78,7 +78,7 @@ describe('Tests on the xhr core when it starts to call the request', function ()
78
78
  });
79
79
 
80
80
  it('must have the standard parameters all in', function (done) {
81
- //issue a standard jsf.ajax.request upon the standard simple form case and check the passed parameters
81
+ //issue a standard faces.ajax.request upon the standard simple form case and check the passed parameters
82
82
  //and whether send was called
83
83
  let send = sinon.spy(XMLHttpRequest.prototype, "send");
84
84
 
@@ -92,7 +92,7 @@ describe('Tests on the xhr core when it starts to call the request', function ()
92
92
  expect(send.called).to.be.true;
93
93
  expect(send.callCount).to.eq(1);
94
94
 
95
- //sent params javax.faces.ViewState=null&execute=input_1&render=%40form&pass1=pass1&pass2=pass2&javax.faces.windowId=null&javax.faces.source=input_2&javax.faces.partial.ajax=input_2&blarg=blarg&javax.faces.partial.execute=input_1%20input_2&javax.faces.partial.render=blarg
95
+ //sent params jakarta.faces.ViewState=null&execute=input_1&render=%40form&pass1=pass1&pass2=pass2&jakarta.faces.windowId=null&jakarta.faces.source=input_2&jakarta.faces.partial.ajax=input_2&blarg=blarg&jakarta.faces.partial.execute=input_1%20input_2&jakarta.faces.partial.render=blarg
96
96
 
97
97
  } finally {
98
98
 
@@ -167,7 +167,7 @@ describe('Tests after core when it hits response', function () {
167
167
  (<any>global).XMLHttpRequest = this.xhr = sinon.useFakeXMLHttpRequest();
168
168
  (<any>window).XMLHttpRequest = this.xhr = sinon.useFakeXMLHttpRequest();
169
169
 
170
- this.jsfAjaxResponse = sinon.spy((<any>global).jsf.ajax, "response");
170
+ this.jsfAjaxResponse = sinon.spy((<any>global).faces.ajax, "response");
171
171
 
172
172
  this.closeIt = () => {
173
173
  (<any>global).XMLHttpRequest = (<any>window).XMLHttpRequest = this.xhr.restore();
@@ -189,10 +189,10 @@ describe('Tests after core when it hits response', function () {
189
189
  let localCnt = 0;
190
190
  try {
191
191
  let element = DomQuery.byId("input_2").getAsElem(0).value;
192
- jsf.ajax.addOnEvent(() => {
192
+ faces.ajax.addOnEvent(() => {
193
193
  globalCnt++;
194
194
  });
195
- jsf.ajax.request(element, null, {
195
+ faces.ajax.request(element, null, {
196
196
  execute: "input_1",
197
197
  render: "@form",
198
198
  pass1: "pass1",
@@ -227,12 +227,12 @@ describe('Tests after core when it hits response', function () {
227
227
 
228
228
  try {
229
229
  let element = DomQuery.byId("input_2").getAsElem(0).value;
230
- jsf.ajax.addOnEvent(() => {
230
+ faces.ajax.addOnEvent(() => {
231
231
  globalCnt++;
232
232
  });
233
233
 
234
234
 
235
- jsf.ajax.request(element, null, {
235
+ faces.ajax.request(element, null, {
236
236
  execute: "input_1",
237
237
  render: "@form",
238
238
  pass1: "pass1",
@@ -292,7 +292,7 @@ describe('Tests after core when it hits response', function () {
292
292
  try {
293
293
  let errorCnt = 0;
294
294
  let element = DomQuery.byId("input_2").getAsElem(0).value;
295
- jsf.ajax.request(element, null, {
295
+ faces.ajax.request(element, null, {
296
296
  execute: "input_1",
297
297
  render: "@form",
298
298
  pass1: "pass1",
@@ -25,7 +25,7 @@ import protocolPage = StandardInits.protocolPage;
25
25
  import {DQ} from "mona-dish";
26
26
  import {Optional} from "mona-dish";
27
27
 
28
- declare var jsf: any;
28
+ declare var faces: any;
29
29
  declare var Implementation: any;
30
30
 
31
31
  /**
@@ -205,7 +205,7 @@ describe('Tests of the various aspects of the response protocol functionality',
205
205
  DQ.byId("cmd_viewstate").click();
206
206
 
207
207
  this.respond(XmlResponses.VIEWSTATE_1);
208
- let viewStateElem = DQ.byId('javax.faces.ViewState');
208
+ let viewStateElem = DQ.byId('jakarta.faces.ViewState');
209
209
  expect(viewStateElem.inputValue.value == "hello world").to.be.true;
210
210
  });
211
211
 
@@ -235,7 +235,7 @@ describe('Tests of the various aspects of the response protocol functionality',
235
235
  /*js full submit form, coming from the integration tests*/
236
236
  window.document.body.innerHTML = `<form id="j_id__v_0" name="j_id__v_0" method="post" action="/IntegrationJSTest/integrationtestsjasmine/test7-eventtest.jsf"
237
237
  enctype="application/x-www-form-urlencoded"><span id="updatePanel">hello world</span><a href="#"
238
- onclick="return jsf.util.chain(this, event,'return false;', 'return myfaces.ab(\'j_id_1l\',\'updateTrigger\');');"
238
+ onclick="return faces.util.chain(this, event,'return false;', 'return myfaces.ab(\'j_id_1l\',\'updateTrigger\');');"
239
239
  id="updateTrigger"
240
240
  name="updateTrigger"
241
241
  class="updateTrigger">[Press
@@ -243,7 +243,7 @@ describe('Tests of the various aspects of the response protocol functionality',
243
243
  </form>`;
244
244
 
245
245
 
246
- jsf.ajax.request(window.document.getElementById("updateTrigger"), null, {
246
+ faces.ajax.request(window.document.getElementById("updateTrigger"), null, {
247
247
  render: "updatePanel",
248
248
  execute: "updatePanel updateTrigger"
249
249
  });
@@ -253,15 +253,15 @@ describe('Tests of the various aspects of the response protocol functionality',
253
253
  <partial-response id="j_id__v_0">
254
254
  <changes>
255
255
  <update id="updatePanel"><![CDATA[<span id="updatePanel">hello world</span>]]></update>
256
- <update id="j_id__v_0:javax.faces.ViewState:1"><![CDATA[RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD]]></update>
256
+ <update id="j_id__v_0:jakarta.faces.ViewState:1"><![CDATA[RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD]]></update>
257
257
  </changes>
258
258
  </partial-response>`);
259
259
 
260
260
 
261
- expect(DQ.byId("javax.faces.ViewState").isAbsent()).to.be.false;
261
+ expect(DQ.byId("jakarta.faces.ViewState").isAbsent()).to.be.false;
262
262
 
263
- expect((<HTMLInputElement>document.getElementById("javax.faces.ViewState")).value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
264
- expect(DQ.byId("javax.faces.ViewState").inputValue.value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
263
+ expect((<HTMLInputElement>document.getElementById("jakarta.faces.ViewState")).value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
264
+ expect(DQ.byId("jakarta.faces.ViewState").inputValue.value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
265
265
  });
266
266
 
267
267
 
@@ -272,7 +272,7 @@ describe('Tests of the various aspects of the response protocol functionality',
272
272
  /*js full submit form, coming from the integration tests*/
273
273
  window.document.body.innerHTML = `<form id="j_id__v_0" name="j_id__v_0" method="post" action="/IntegrationJSTest/integrationtestsjasmine/test7-eventtest.jsf"
274
274
  enctype="application/x-www-form-urlencoded"><span id="updatePanel">hello world</span><a href="#"
275
- onclick="return jsf.util.chain(this, event,'return false;', 'return myfaces.ab(\'j_id_1l\',\'updateTrigger\');');"
275
+ onclick="return faces.util.chain(this, event,'return false;', 'return myfaces.ab(\'j_id_1l\',\'updateTrigger\');');"
276
276
  id="updateTrigger"
277
277
  name="updateTrigger"
278
278
  class="updateTrigger">[Press
@@ -280,7 +280,7 @@ describe('Tests of the various aspects of the response protocol functionality',
280
280
  </form>`;
281
281
 
282
282
 
283
- jsf.ajax.request(window.document.getElementById("updateTrigger"), null, {
283
+ faces.ajax.request(window.document.getElementById("updateTrigger"), null, {
284
284
  render: "updatePanel",
285
285
  execute: "updatePanel updateTrigger"
286
286
  });
@@ -290,17 +290,17 @@ describe('Tests of the various aspects of the response protocol functionality',
290
290
  <partial-response id="j_id__v_0">
291
291
  <changes>
292
292
  <update id="updatePanel"><![CDATA[<span id="updatePanel">hello world</span>]]></update>
293
- <update id="j_id__v_0:javax.faces.ViewState:1"><![CDATA[RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD]]><!--
293
+ <update id="j_id__v_0:jakarta.faces.ViewState:1"><![CDATA[RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD]]><!--
294
294
  Some random junk which is sent by the server
295
295
  --></update>
296
296
  </changes>
297
297
  </partial-response>`);
298
298
 
299
299
 
300
- expect(DQ.byId("javax.faces.ViewState").isAbsent()).to.be.false;
300
+ expect(DQ.byId("jakarta.faces.ViewState").isAbsent()).to.be.false;
301
301
 
302
- expect((<HTMLInputElement>document.getElementById("javax.faces.ViewState")).value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
303
- expect(DQ.byId("javax.faces.ViewState").inputValue.value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
302
+ expect((<HTMLInputElement>document.getElementById("jakarta.faces.ViewState")).value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
303
+ expect(DQ.byId("jakarta.faces.ViewState").inputValue.value == "RTUyRDI0NzE4QzAxM0E5RDAwMDAwMDVD").to.be.true;
304
304
  });
305
305
 
306
306
 
@@ -312,7 +312,7 @@ describe('Tests of the various aspects of the response protocol functionality',
312
312
  it("must have updated the client window tag properly", function () {
313
313
  window.document.body.innerHTML = `<tobago-page locale='en' class='container-fluid' id='page'>
314
314
  <form action='/IntegrationJSTest/integrationtestsjasmine/tobago-jfwid-test.jsf' id='page::form' method='post' accept-charset='UTF-8' data-tobago-context-path=''>
315
- <input type='hidden' name='javax.faces.source' id='javax.faces.source' disabled='disabled'>
315
+ <input type='hidden' name='jakarta.faces.source' id='jakarta.faces.source' disabled='disabled'>
316
316
  <tobago-focus id='page::lastFocusId'>
317
317
  <input type='hidden' name='page::lastFocusId' id='page::lastFocusId::field'>
318
318
  </tobago-focus>
@@ -326,19 +326,19 @@ describe('Tests of the various aspects of the response protocol functionality',
326
326
  </div>
327
327
  <div class='tobago-page-menuStore'></div>
328
328
  <span id='page::jsf-state-container'>
329
- <input type='hidden' name='javax.faces.ViewState' id='j_id__v_0:javax.faces.ViewState:1' value='RkExQ0Q1NTYzOTNCNzg0RjAwMDAwMDE4' autocomplete='off'>
330
- <input type='hidden' name='javax.faces.RenderKitId' value='tobago'>
331
- <input type='hidden' id='j_id__v_0:javax.faces.ClientWindow:1' name='javax.faces.ClientWindow' value='5m10kooxi'>
329
+ <input type='hidden' name='jakarta.faces.ViewState' id='j_id__v_0:jakarta.faces.ViewState:1' value='RkExQ0Q1NTYzOTNCNzg0RjAwMDAwMDE4' autocomplete='off'>
330
+ <input type='hidden' name='jakarta.faces.RenderKitId' value='tobago'>
331
+ <input type='hidden' id='j_id__v_0:jakarta.faces.ClientWindow:1' name='jakarta.faces.ClientWindow' value='5m10kooxi'>
332
332
  </span>
333
333
  </form>
334
334
  </tobago-page>`;
335
335
 
336
336
  expect(DQ.querySelectorAll("#page\\:output tobago-out").textContent() === "").to.be.true;
337
- expect(DQ.byId("j_id__v_0:javax.faces.ViewState:1").isAbsent()).to.be.false;
338
- expect(DQ.byId("j_id__v_0:javax.faces.ClientWindow:1").isAbsent()).to.be.false;
337
+ expect(DQ.byId("j_id__v_0:jakarta.faces.ViewState:1").isAbsent()).to.be.false;
338
+ expect(DQ.byId("j_id__v_0:jakarta.faces.ClientWindow:1").isAbsent()).to.be.false;
339
339
 
340
- jsf.ajax.request(window.document.getElementById("page:input"), "change", {
341
- "javax.faces.behavior.event": "change",
340
+ faces.ajax.request(window.document.getElementById("page:input"), "change", {
341
+ "jakarta.faces.behavior.event": "change",
342
342
  execute: "page:input",
343
343
  render: "page:output"
344
344
  });
@@ -351,16 +351,16 @@ describe('Tests of the various aspects of the response protocol functionality',
351
351
  <tobago-out class='form-control-plaintext'>Alice</tobago-out>
352
352
  </div>]]>
353
353
  </update>
354
- <update id='j_id__v_0:javax.faces.ViewState:1'><![CDATA[MDQwQzkxNkU0MTg0RTQxRjAwMDAwMDE3]]>
354
+ <update id='j_id__v_0:jakarta.faces.ViewState:1'><![CDATA[MDQwQzkxNkU0MTg0RTQxRjAwMDAwMDE3]]>
355
355
  </update>
356
- <update id='j_id__v_0:javax.faces.ClientWindow:1'><![CDATA[5m10kooxg]]>
356
+ <update id='j_id__v_0:jakarta.faces.ClientWindow:1'><![CDATA[5m10kooxg]]>
357
357
  </update>
358
358
  </changes>
359
359
  </partial-response>`);
360
360
 
361
361
  expect(DQ.querySelectorAll("#page\\:output tobago-out").textContent() === "Alice").to.be.true;
362
- expect(DQ.byId("j_id__v_0:javax.faces.ViewState:1").isAbsent()).to.be.false;
363
- expect(DQ.byId("j_id__v_0:javax.faces.ClientWindow:1").isAbsent()).to.be.false;
362
+ expect(DQ.byId("j_id__v_0:jakarta.faces.ViewState:1").isAbsent()).to.be.false;
363
+ expect(DQ.byId("j_id__v_0:jakarta.faces.ClientWindow:1").isAbsent()).to.be.false;
364
364
  });
365
365
 
366
366
 
@@ -28,9 +28,8 @@ import shadowDomMyFaces = StandardInits.shadowDomMyFaces;
28
28
 
29
29
  sinon.reset();
30
30
 
31
- declare var jsf: any;
32
31
  declare var Implementation: any;
33
-
32
+ declare const window: any;
34
33
 
35
34
  describe('shadow dom testsuite', () => {
36
35
 
@@ -68,14 +67,13 @@ describe('shadow dom testsuite', () => {
68
67
 
69
68
 
70
69
  it("shadow dom behavior tested", function() {
71
- const Impl = Implementation;
72
70
  //const addRequestToQueue = sinon.stub(Impl.queueHandler, "addRequestToQueue");
73
71
 
74
72
  expect(DomQuery.querySelectorAll("#shadowDomArea").length).to.eq(1);
75
73
  expect(DomQuery.querySelectorAll("* /shadow/ #shadowContent").length).to.eq(1);
76
74
 
77
75
  DomQuery.byId("blarg:input_1", true).addEventListener("click", (event: Event) => {
78
- jsf.ajax.request(event.target, event, {render: 'shadowContent', execute: '@this'})
76
+ window.faces.ajax.request(event.target, event, {render: 'shadowContent', execute: '@this'})
79
77
  }).click();
80
78
  this.respond(XmlResponses.SHADOW_DOM_UPDATE);
81
79
 
@@ -94,7 +92,7 @@ describe('shadow dom testsuite', () => {
94
92
 
95
93
 
96
94
  DomQuery.byId("input_3", true).addEventListener("click", (event: Event) => {
97
- jsf.ajax.request(event.target, event, {render: 'shadowContent', execute: '@this'})
95
+ window.faces.ajax.request(event.target, event, {render: 'shadowContent', execute: '@this'});
98
96
  }).click();
99
97
  this.respond(XmlResponses.SHADOW_DOM_UPDATE);
100
98
 
@@ -25,7 +25,7 @@ import {Lang} from "mona-dish";
25
25
  import {FakeWebsocket} from "./FakeWebsocket";
26
26
  import assertType = Lang.assertType;
27
27
 
28
- declare var jsf: any;
28
+ declare var faces: any;
29
29
 
30
30
  describe('Tests the jsf websocket client side api on high level (generic test without any myfaces dependencies', function () {
31
31
 
@@ -43,7 +43,7 @@ describe('Tests the jsf websocket client side api on high level (generic test wi
43
43
  (<any>global).XMLHttpRequest = this.xhr;
44
44
  (<any>window).XMLHttpRequest = this.xhr;
45
45
 
46
- this.jsfAjaxResponse = sinon.stub((<any>global).jsf.ajax, "response");
46
+ this.jsfAjaxResponse = sinon.stub((<any>global).faces.ajax, "response");
47
47
 
48
48
  this.fakeWebsocket = new FakeWebsocket();
49
49
  this.socket = sinon.stub(window, 'WebSocket').returns(this.fakeWebsocket);
@@ -86,7 +86,7 @@ describe('Tests the jsf websocket client side api on high level (generic test wi
86
86
 
87
87
  try {
88
88
 
89
- jsf.push.init("clientId1", "booga.ws", "mychannel", () => {
89
+ faces.push.init("clientId1", "booga.ws", "mychannel", () => {
90
90
  done();
91
91
  },
92
92
  () => {
@@ -127,7 +127,7 @@ describe('Tests the jsf websocket client side api on high level (generic test wi
127
127
  let msg = null;
128
128
  let cnl = null;
129
129
  new Promise((resolve, reject) => {
130
- jsf.push.init("blarg", "booga.ws", "mychannel", () => {
130
+ faces.push.init("blarg", "booga.ws", "mychannel", () => {
131
131
  openCalled = true;
132
132
  this.fakeWebsocket._respond({data: '"booga"'});
133
133
  },
@@ -155,7 +155,7 @@ describe('Tests the jsf websocket client side api on high level (generic test wi
155
155
 
156
156
  expect(closeCalled, "websocket still open").to.be.false;
157
157
 
158
- jsf.push.close("blarg");
158
+ faces.push.close("blarg");
159
159
  expect(closeCalled, "websocket now closed").to.be.true;
160
160
 
161
161
 
@@ -175,7 +175,7 @@ describe('Tests the jsf websocket client side api on high level (generic test wi
175
175
  let msg = null;
176
176
  let cnl = null;
177
177
  new Promise((resolve, reject) => {
178
- jsf.push.init("blarg", "booga.ws", "mychannel", () => {
178
+ faces.push.init("blarg", "booga.ws", "mychannel", () => {
179
179
  openCalled = true;
180
180
  this.fakeWebsocket._respond({data: '"booga"'});
181
181
  },
@@ -192,7 +192,7 @@ describe('Tests the jsf websocket client side api on high level (generic test wi
192
192
  "",
193
193
  false
194
194
  );
195
- jsf.push.open("blarg");
195
+ faces.push.open("blarg");
196
196
  }).then(() => {
197
197
  expect(openCalled, "Open must have been called due to open").to.be.true;
198
198
 
@@ -202,7 +202,7 @@ describe('Tests the jsf websocket client side api on high level (generic test wi
202
202
 
203
203
  expect(closeCalled, "websocket still open").to.be.false;
204
204
 
205
- jsf.push.close("blarg");
205
+ faces.push.close("blarg");
206
206
  expect(closeCalled, "websocket now closed").to.be.true;
207
207
 
208
208
 
@@ -8,7 +8,7 @@ Special config to generate the tsdocs
8
8
 
9
9
  },
10
10
  "typedocOptions": {
11
- "entryPoints": ["api/Jsf.ts"],
11
+ "entryPoints": ["api/faces.ts"],
12
12
  "out": "../../../dist/docs",
13
13
  "externalPattern": "**/node_modules/**",
14
14
  "exclude": "**/{node_modules,test,doc,impl,myfaces}/**/*",
@@ -14,7 +14,7 @@
14
14
 
15
15
  /***/ "./src/main/typescript/api/Jsf.ts":
16
16
  /*!****************************************!*\
17
- !*** ./src/main/typescript/api/Jsf.ts ***!
17
+ !*** ./src/main/typescript/api/faces.ts ***!
18
18
  \****************************************/
19
19
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
20
20