我有一个运行 Primefaces、JSF 2.2、Spring 和 Hibernate 的应用程序。我使用 JSF 的 Flash Scope 发送带有重定向的参数:
FacesContext.getCurrentInstance().getExternalContext().getFlash().put("loginCliente", cliente.getLogin());
return "registroCasa?faces-redirect=true";
如果我写入#{flash.keep.loginCliente}
并registroCasa.xhtml
重新加载页面,则该值变为空,但如果我写入#{flash.loginClient}
该值,则该值保持活动状态。为什么?
我正在使用 Mojarra 2.2.12。