java - Vaadin Flow UnsupportedOperationException:确认来自客户端的重复消息
问题描述
我想使用带有 Button 的 Anchor 元素作为子元素,但在这种情况下我遇到了异常:
java.lang.UnsupportedOperationException:确认来自客户端的重复消息。预期同步 id:2,得到 1。消息开始:{“csrfToken”:“992caf41-4b1c-4b1e-97da-04c83c55301a”,“rpc”:[{“type”:“event”,“node”:10,事件":"点击","数据":{"event.shiftKey":false,"event.metaKey":false,"event.detail":1,"event.ctrlKey":false,"event.clientX": 693,"event.clientY":166,"event.altKey":false,"event.button":0,"event.screenY":262,"event.screenX":693}}],"syncId":1 “客户标识”:1}
这是我的元素的源代码:
Button button = new Button("Rules");
Anchor anchor = new Anchor("/rules", button);
我的课程来源:https ://pastebin.com/G8zU0csP
我正在使用 Vaadin 14.0.5 谁能帮我解决这个问题?
解决方案
您是否将button
和都添加anchor
到 UI 中?如果是这种情况,那么您应该只anchor
直接添加。这似乎对我有用,没有任何问题
Button button = new Button("Title");
Anchor anchor = new Anchor("https://stackoverflow.com/questions/58684723/vaadin-flow-unsupportedoperationexception-confirmed-duplicate-message-from-the", button); add(anchor);
你能在你的例子中添加更多细节吗?Anchor 中的 URL 是什么?
推荐阅读
- regex - 正则表达式只匹配一个字符而不匹配任何其他字符
- angularjs - AngularJS $location.path 在 url 之前添加 #!/
- python - 在 Python 中迭代 CSV 文件的困难
- jdbc - “数据异常:字符串数据,右截断”插入准备好的语句
- checkbox - 颤振:复选框 onChanged
- react-native - REPL - Figwheel 无法连接到重生应用程序
- javascript - 无法将 javascript 从 index.html 移动到外部文件
- android - 以编程方式为运行时创建的 textViews 设置约束?
- html - Boostrap 4中的提交按钮和输入具有不同的宽度
- javascript - React Storybook with Webpack Error - Module build failed: TypeError: Cannot read property 'thisCompilation' of undefined