This is an automated email from the ASF dual-hosted git repository. tandraschko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/deltaspike.git
The following commit(s) were added to refs/heads/master by this push: new c3ede074b migrated js to faces c3ede074b is described below commit c3ede074b4004245fb82064478deabd30a4b69e0 Author: Thomas Andraschko <tandrasc...@apache.org> AuthorDate: Tue Nov 14 11:51:40 2023 +0100 migrated js to faces --- .../META-INF/resources/deltaspike/windowhandler.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js index bca8bed27..6271d010b 100644 --- a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js +++ b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js @@ -63,12 +63,14 @@ window.dswh = window.dswh || { targetStrategy.init(false); // JSF ajax callback - faces.ajax.addOnEvent(function(event) { - if (event.status === "success") { - dswh.utils.log('--- #init(true)'); - targetStrategy.init(true); - } - }); + if (window.faces) { + faces.ajax.addOnEvent(function(event) { + if (event.status === "success") { + dswh.utils.log('--- #init(true)'); + targetStrategy.init(true); + } + }); + } // PF ajax callback if (window.$ && window.PrimeFaces) {