【发布时间】:2014-04-08 09:09:18
【问题描述】:
我正在改进/优化我的 primefaces ConfirmDialog,但我似乎无法在其上放置一些漂亮的图像或改进它的某些外观。此外,我似乎找不到一些关于如何使用其属性的文档,我已经下载了 primefaces 用户手册,但它似乎缺少一些东西。 这是我的代码。
<p:confirmDialog header="Confirm" severity="alert" closeOnEscape="true" widgetVar="confirmationDialog" showEffect="fold" >
<f:facet name="message">
<h:outputText value="Are you sure all details
are correct and proceed in creating the Account?" />
</f:facet>
<p:commandButton value="Yes" actionListener="#{marketingPersonController.create}"
oncomplete="confirmationDialog.hide()" icon="ui-icon-check"
update="propertyPanel accountPanel marketingPersonPanel">
<f:ajax rendered="propertyPanel accountPanel marketingPersonPanel"/>
</p:commandButton>
<p:commandButton value="No" onclick="confirmationDialog.hide()" type="button"
icon="ui-icon-close"/>
</p:confirmDialog>
这是截图
我似乎无法删除小的!那里的图标,如果我没有设置严重性,它仍然会显示一个奇怪的“^”图像。我想彻底改变图标并以某种方式修改它的一些外观。
另外,我尝试使用这个 css。仍然无法正常工作。
.ui-dialog-content p span {
background-image: url('path to image here')
no-repeat !important;
}
我做错了吗?如果您有完整的 primefaces 文档,那也会有所帮助。谢谢
【问题讨论】:
标签: css jsf jsf-2 primefaces xhtml