小编bvb*_*909的帖子

JSF显示没有Button的图标

嗨,大家好,我想显示没有按钮的图标,但它不起作用.我收到以下消息:找不到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)

jsf primefaces

6
推荐指数
2
解决办法
3万
查看次数

带有 Fontawesome 图标的工具提示

我想使用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)

jsf primefaces font-awesome

2
推荐指数
1
解决办法
5928
查看次数

xsl:fo 检索标记不是有效的子项

我需要<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)

xml pdf-generation xsl-fo marker

2
推荐指数
1
解决办法
2331
查看次数

标签 统计

jsf ×2

primefaces ×2

font-awesome ×1

marker ×1

pdf-generation ×1

xml ×1

xsl-fo ×1