Jsf Primefaces在背页上记住fileUpload名称

时间:2016-05-14 03:34:44

标签: jsf primefaces

在第1页中,我选择了一张图片,然后转到第2页,然后我返回第1页,但我看不到我被选中的图像。我如何在image1中获得我被选中的图像?

1页:

    <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>
第2页

    <p:commandButton value="Back" ajax="false" action="page1" disabled="false" />

0 个答案:

没有答案
相关问题