This question already has an answer here:
Pass an object between @ViewScoped beans without using GET params

(1个答案)


12天前关闭。




我使用以下命令重定向到详细信息页面:
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隐藏起来。任何想法?

最佳答案

使用Flash作用域:stackoverflow.com/questions/11194112/

10-06 08:59