问题描述
我正在尝试使用 JavaScript Orbeon 嵌入 API。设置转发*后(我希望是正确的,我先是 404,然后是 CORS 错误)现在表单已嵌入页面但表单不起作用,单击任何控件/按钮都会导致错误
ORBEON.xforms.server.AjaxServer.Event is not a constructor
。
更具体地说,在控制台中单击下一页按钮会产生:
xforms.js:2399
⌄ Uncaught TypeError: ORBEON.xforms.server.AjaxServer.Event is not a constructor
at HTMLDocument.focus (xforms.js:2399)
focus @ xforms.js:2399
---
xforms.js:2722
⌄ Uncaught TypeError: ORBEON.xforms.server.AjaxServer.Event is not a constructor
at HTMLDocument.click (xforms.js:2722)
click @ xforms.js:2722
* 转发是这样设置的:
<VirtualHost *:443>
....
SSLProxyEngine on
RewriteEngine on
RewriteRule "^/orbeon/(.+)" "https://orbeon.server.ip/orbeon/$1" [P,L]
解决方法
JS Embedding API Limitations 状态,即
oxf.xforms.combine-resources
必须设置为 true
(在 properties-local.xml
中)