Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css <;p:commandButton>;图像显示按钮图像上方的ui按钮_Css_Jsf 2_Primefaces - Fatal编程技术网

Css <;p:commandButton>;图像显示按钮图像上方的ui按钮

Css <;p:commandButton>;图像显示按钮图像上方的ui按钮,css,jsf-2,primefaces,Css,Jsf 2,Primefaces,我想将一个按钮显示为图像。因此我将其编写为: <p:commandButton styleClass="edit_button_image" actionListener="#{userLeaveBean.editAppliedLeave}" title="Edit" process="@this"/> } 它很好地显示了图像,但也在图像上显示了一个文本“ui按钮”。 我怎样才能只获得图像? 使用它很好,因为我想对整个过程的一部分执行一些操作,因为我选择并添加了process=“@

我想将一个按钮显示为图像。因此我将其编写为:

<p:commandButton styleClass="edit_button_image" actionListener="#{userLeaveBean.editAppliedLeave}" title="Edit" process="@this"/>
}

它很好地显示了图像,但也在图像上显示了一个文本“ui按钮”。 我怎样才能只获得图像?
使用它很好,因为我想对整个过程的一部分执行一些操作,因为我选择并添加了process=“@this”。有解决方案吗

这不是更容易吗?
p:commandLink
p:commandButton
一样提交帖子

<h:form>
    <p:commandLink ...>
        <h:graphicImage ... />
    </p:commandLink>
</h:form>


@NGH不客气。根据你的历史记录,你还没有发现如何接受答案:你应该通过点击答案左边的标记来“接受”答案,以防你觉得它解决了你的问题。这有助于未来读者确定问题的正确解决方案(这也适用于您以前的问题)。我尝试了buddy..但说我必须等到2分钟,所以我花了时间..:)没问题,请看您也接受了其他问题的答案!:)
<h:form>
    <p:commandLink ...>
        <h:graphicImage ... />
    </p:commandLink>
</h:form>