p:带有@requestscoped bean PhaseId null的graphicImage

问题描述 投票:0回答:1
primefaces jsf-2
1个回答
0
投票

以下代码在单一视图中对我有用:

<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui" xmlns:dp="http://integrity.hu/dynap"
    template="/WEB-INF/templates/default.xhtml">
    <ui:define name="content">
        <h:form>
            <p:scrollPanel style="width:100%;height:500px;">
                <p:graphicImage value="${imageView.image}" id="singleimage">
                    <f:param name="fileName"
                        value="#{request.getParameter('fileName')}" />
                </p:graphicImage>
            </p:scrollPanel>
        </h:form>
    </ui:define>
</ui:composition>
© www.soinside.com 2019 - 2024. All rights reserved.