4
我正在改进/抛光我的primefaces ConfirmDialog,但我似乎不能在它上面放一些漂亮的图像或改进它的一些外观。另外我似乎找不到一些关于如何使用它的属性的文档,我已经下载了primefaces用户手册,但它似乎缺少一些东西。 这是我的代码。JSF Primefaces ConfirmDialog
<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的解决方案,它的工作。谢谢!还有,我可以修改标题,也许可以在其中添加一些颜色 – steven0529