为什么我的 p:progressBar 没有显示,只有数字? [英] Why is my p:progressBar not displayed, only the number?
本文介绍了为什么我的 p:progressBar 没有显示,只有数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下带有进度条的 XHTML 文件:
<html xmlns="http://www.w3.org/1999/xhtml"xmlns:h="http://java.sun.com/jsf/html"xmlns:f="http://java.sun.com/jsf/core"xmlns:p="http://primefaces.org/ui"xmlns:pm="http://primefaces.org/mobile"><f:view renderKitId="PRIMEFACES_MOBILE"/><h:head></h:head><f:event listener="#{mainOp.init}" type="preRenderView"/><h:body id="body"><pm:page id="page"><pm:header title="MyProduct"></pm:header><pm:content id="内容"><p:outputLabel value="..."/><p:graphicImage id="image" 渲染="true"值="..."缓存=假"/><p:progressBar id="progressBar"value="#{mainOp.progress}"呈现=真"缓存=假"labelTemplate="{value}%"style="width:400px; font-size:12px"间隔=100"/>...</pm:content><pm:footer title="m.MyProduct.info"></pm:footer></pm:page></h:body>