0

In page 1 I chose a image then I go to page 2, then I go back to page 1 but I don't see the image that I was selected. How I can get in image1 the image that I was selected?

page1:

    <ui:define name="content">
    <h:form id="form1" enctype="multipart/form-data">
    <h:panelGrid id="grid1" columns="3">
    <p:fileUpload id="image1"  allowTypes="/(\.|\/)(gif|jpe?g|png)$/"  value="#{bean.image1}" mode="simple" auto="true" skinSimple="true"/>
    </h:panelGrid>
    <p:commandButton value="Next" ajax="false" action="page2"         disabled="false" />
    </h:form>
    </ui:define>

in page2

    <p:commandButton value="Back" ajax="false" action="page1" disabled="false" />
Termininja
  • 6,620
  • 12
  • 48
  • 49
javier742
  • 73
  • 1
  • 2
  • 5
  • First check if, on pressing back, your page comes from cache. If not, you are at a loss. Security wise impossible. If it does come from cache, I'm not sure what the browser and/or component behaviour should be. – Kukeltje May 14 '16 at 08:18
  • The scope is application – javier742 May 14 '16 at 12:30

0 Answers0