jsf.js_next_gen 4.0.0-RC.15 → 4.0.0-RC.16

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.
@@ -4684,7 +4684,7 @@ var Implementation;
4684
4684
  let hasPrependId = componentIdToTransform.indexOf(formClientId) == 0;
4685
4685
  return hasPrependId ?
4686
4686
  [rootNamingContainerPrefix, componentIdToTransform].join(Const_1.EMPTY_STR) :
4687
- [nearestNamingContainerPrefix, componentIdToTransform.substring(componentIdToTransform.lastIndexOf(SEP) + 1)].join(Const_1.EMPTY_STR);
4687
+ [nearestNamingContainerPrefix, componentIdToTransform].join(Const_1.EMPTY_STR);
4688
4688
  }
4689
4689
  };
4690
4690
  // in this case we do not use lazy stream because it wont bring any code reduction
@@ -6427,10 +6427,10 @@ function resolveViewId(form) {
6427
6427
  const viewState = form.querySelectorAll(`input[type='hidden'][name*='${(0, Const_1.$nsp)(Const_1.P_VIEWSTATE)}']`).id.orElse("").value;
6428
6428
  const divider = (0, Const_1.$faces)().separatorchar;
6429
6429
  const viewId = viewState.split(divider, 2)[0];
6430
- if (viewId.indexOf((0, Const_1.$nsp)(Const_1.P_VIEWSTATE)) === -1) {
6431
- return viewId;
6432
- }
6433
- return "";
6430
+ const viewStateViewId = viewId.indexOf((0, Const_1.$nsp)(Const_1.P_VIEWSTATE)) === -1 ? viewId : "";
6431
+ // myfaces specific, we in non portlet environments prepend the viewId
6432
+ // even without being in a naming container, the other components ignore that
6433
+ return form.id.value.indexOf(viewStateViewId) === 0 ? viewStateViewId : "";
6434
6434
  }
6435
6435
  exports.resolveViewId = resolveViewId;
6436
6436
  function resolveTimeout(options) {
Binary file
Binary file