留言板
Redirection in the restore view phase
Roberfroid Vincent,修改在9 年前。
Redirection in the restore view phase
New Member 帖子: 10 加入日期: 14-5-26 最近的帖子
Hello,
We have a JSF 2.1 web application that performs a redirection in the beforePhase of a listener registered in the JSF restore view phase.
We tried to deploy this web application on Liferay 6.2 and the last version of the bridge 3.2.x.
This causes however a NullPointerException in the method redirect of the BridgeContextImpl, at this line:
This is due to the fact that the viewRoot has not been created yet in the beforePhase of the restore view phase.
We however use a direct link, so the variable currentFacesViewId is not needed. Is it forbidden to do a redirection at this stage?
Could it be possible to add a condition to avoid a NullPointerException?
Kind regards,
Vincent
We have a JSF 2.1 web application that performs a redirection in the beforePhase of a listener registered in the JSF restore view phase.
context.getExternalContext().redirect(newUrl);
We tried to deploy this web application on Liferay 6.2 and the last version of the bridge 3.2.x.
This causes however a NullPointerException in the method redirect of the BridgeContextImpl, at this line:
String currentFacesViewId = FacesContext.getCurrentInstance().getViewRoot().getViewId();
This is due to the fact that the viewRoot has not been created yet in the beforePhase of the restore view phase.
We however use a direct link, so the variable currentFacesViewId is not needed. Is it forbidden to do a redirection at this stage?
Could it be possible to add a condition to avoid a NullPointerException?
Kind regards,
Vincent
Neil Griffin,修改在8 年前。
RE: Redirection in the restore view phase
Liferay Legend 帖子: 2655 加入日期: 05-7-27 最近的帖子
Thank you for reporting this issue. Please click on the "Watch" link in JIRA for FACES-2216 in order to be notified about progress. We hope to have the issue fixed soon.
Roberfroid Vincent,修改在8 年前。
RE: Redirection in the restore view phase
New Member 帖子: 10 加入日期: 14-5-26 最近的帖子
OK. Thank you for your fast reply.
Neil Griffin,修改在8 年前。
RE: Redirection in the restore view phase (答复)
Liferay Legend 帖子: 2655 加入日期: 05-7-27 最近的帖子
Hi Vincent,
The bug should be fixed now in our 3.2.x branch. When you get a chance, please test it in your environment and let us know if it is working for you.
Thank you,
Neil
The bug should be fixed now in our 3.2.x branch. When you get a chance, please test it in your environment and let us know if it is working for you.
Thank you,
Neil