我重定向到详细信息页面:
FacesContext.getCurrentInstance().getExternalContext().redirect("detailsTask?id=" + process.getId());
bean的配置是:
<managed-bean>
<managed-bean-name>detailsTaskBacking</managed-bean-name>
<managed-bean-class>pt.ano.gspgsemdd.webapp.tasks.DetailsTaskBacking</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>id</property-name>
<value>#{param.id}</value>
</managed-property>
</managed-bean>
通过这种方式,链接可见,ID也是如此。我需要隐藏这个ID。有什么想法吗?
答案 0 :(得分:2)
使用闪存范围:stackoverflow.com/questions/11194112 /