嗨,大家好,我想显示没有按钮的图标,但它不起作用.我收到以下消息:找不到Mime-Type.这两个图标是Primefaces的默认图标.
我使用JSF 2.1和primefaces 3.5
<h:graphicImage rendered="#{!task.IS_SEEN}" name="ui-icon-mail-closed"/>
<h:graphicImage rendered="#{task.IS_SEEN}" name="ui-icon-mail-closed"/>
Run Code Online (Sandbox Code Playgroud)
如果我使用按钮它会工作或我可以设置按钮无法按下
<p:commandButton rendered="#{!task.IS_SEEN}" icon="ui-icon-mail-closed" />
<p:commandButton rendered="#{task.IS_SEEN}" icon="ui-icon-mail-open" />
Run Code Online (Sandbox Code Playgroud) 我想使用fontawesome作为工具提示文本,但我不知道如何实现它。它与覆盖面板一起使用,但我想使用标签<p:tooltip>。
我使用 primefaces 4.0 和 jsf 2.1 这是带有工具提示的代码
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet" />
<p:graphicImage id="grap" class="fa fa-question-circle fa-2x"/>
<p:tooltip for="grap" value="Some Help" showEffect="fade" />
Run Code Online (Sandbox Code Playgroud)
如果我使用以下内容,它会起作用
<h:panelGroup id="mail" class="fa fa-question-circle fa-2x" />
<p:overlayPanel for="mail" showEvent="mouseover" hideEvent="mouseout" hideEffect="fade">
<p:panel>
TEXTTEXTTEXT
</p:panel>
</p:overlayPanel>
Run Code Online (Sandbox Code Playgroud) 我需要<fo:retrieve-marker>在表中进行 xsl:fo 转换,但我不知道这是否可行,因为我使用 FOP 处理器进行转换。
如果我在表中使用,<fo:retrieve-marker>我总是收到一条错误消息,指出标签必须位于静态内容中。
这是带有标记的表格
<xsl:call-template name="MMEL-Table-Header"/>
<!-- Bottom table Line -->
<fo:table-footer>
<fo:table-row>
<fo:table-cell>
<fo:marker marker-class-name="footer-continued"> <fo:inline>(continued)</fo:inline></fo:marker>
</fo:table-cell>
</fo:table-row>
</fo:table-footer>
<fo:table-body >
<xsl:variable name="identification">
<xsl:value-of select="ident/message"/>
</xsl:variable>
<xsl:apply-templates select="ident"><xsl:with-param name="ident" select="$identification"/></xsl:apply-templates>
<xsl:apply-templates select="provisos/proviso"><xsl:with-param name="ident" select="$identification"/></xsl:apply-templates>
<fo:table-row>
<fo:table-cell> <fo:retrieve-marker retrieve-position="first-starting-within-page" retrieve-class-name="footer-continued" retrieve-boundary="document" /> </fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
Run Code Online (Sandbox Code Playgroud)