Primefaces graphicImage没有?pfdrid_c = true

问题描述 投票:2回答:1

我正在尝试以素面渲染图形图像,但始终返回404。在Chrome调试中,我可以看到如下所示的地址图片:

/UltracarWeb/Images/1427303591376_image.png?pfdrid_c=true"

使用我更改为的Chrome调试:

/UltracarWeb/Images/1427303591376_image.png?pfdrid_c=false" , then the image is rendered.

我以这种方式在xhtml中调用graphicImage:

 <p:graphicImage  style="max-width: 110px; max-height: 140px;"
                 value="#{product.PhotoUrl}"                                                          
                 rendered="#{not empty product.Url}">                                                        
</p:graphicImage>

我已经尝试过使用缓存false和true,但仍然无法正常工作。

URL不为空,因为我在调试中检查了此地址。调试Java代码时,我看到了没有?pfdrid_c = true的product.url,但是在浏览器中,调试了?pfdrid_c = true出现。

此?pfdrid_c = true是素数常量,它引用动态高速缓存,但是我不知道如何删除它?

jsf primefaces
1个回答
0
投票
我在图像的素数部分中也遇到了同样的问题,因为它添加了用于控制?pfdrid_c=true的参数Cache-Control

我正在这样使用它(primefaces元素):

© www.soinside.com 2019 - 2024. All rights reserved.