3

I redirect to details page with:

FacesContext.getCurrentInstance().getExternalContext().redirect("detailsTask?id=" + process.getId());

And the bean configuration is:

<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>

In this way the link is visible and the ID too. I need pass this ID hidden. Any idea?

Marin
  • 1,010
  • 1
  • 10
  • 37
  • 2
    Use the flash scope: http://stackoverflow.com/questions/11194112/understand-flash-scope-in-jsf2/21277621#21277621 – Aritz Aug 25 '14 at 11:29

1 Answers1

2

Use the flash scope: stackoverflow.com/questions/11194112/

Stamos
  • 3,938
  • 1
  • 22
  • 48
kimk
  • 116
  • 4