开发者

Temporary conversation not ending after ExternalContext.redirect()

开发者 https://www.devze.com 2022-12-12 10:09 出处:网络
I\'m working in a project using Seam and JSF. Fo开发者_如何学编程r some reason (don\'t ask me, I don\'t know) the people before me decided to redirect the user to the response page through a FacesCont

I'm working in a project using Seam and JSF. Fo开发者_如何学编程r some reason (don't ask me, I don't know) the people before me decided to redirect the user to the response page through a FacesContext.getExternalContext().redirect(). The problem I'm seeing is that some pages, when redirected to themselves, never release the conversation (the conversationId is always the same in the URL). Has anyone had a similar problem? Thanks


A conversation is not ended by a redirect. If you want to end a conversation manually, you need to call it by Conversation#end(). You can also instruct it to end before a redirect by Conversation#endBeforeRedirect(). There are more convenience methods as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消