Spring-webflow 错误弹出窗口调整
基于 spring-webflow2 的应用程序中有一个链接可以启动不同的流程。流程显示在弹出窗口中(popup=true)。如果会话过期或服务器不可用,spring-webflow 会显示小的空弹出窗口,鼠标悬停时会显示“Ajax 请求错误”工具提示。是否可以调整弹出窗口,以便让用户能够重新登录或关闭弹出窗口并重试请求?
编辑:或者也许有一些想法如何强制 Spring-Dojo 重定向到登录页面?
There is a link in a spring-webflow2 based application which start different flows. Flows are shown in popup (popup=true). If the session is expired or server is unavailable, the spring-webflow shows small empty popup with "Ajax Request Error" tooltip shown on mouse over. Is it possible to tweak the popup in order to give the user an ability to either re-login or to just close the popup and retry the request?
EDIT: Or maybe some ideas how to force Spring-Dojo to make a redirect to login page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是会话消失了,其中的对话/流程也消失了。因此,没有简单的方法可以使弹出窗口再次工作,因为必须恢复对话或流程状态。我认为您能实现的最好结果就是以某种方式说服 Dojo 重定向回登录 URL。
The problem is that the session is gone and so is the conversation/flow in it. So there's no easy way to make the popup work again, because the conversation or flow state must be restored. I think the best you could achieve would be to somehow convince Dojo to redirect back to the login url.