PrimeFaces 10 HTML造型
我想在PrimeFaces 10(emptymessage属性)中添加HTML样式消息。诸如“ Hello world!”之类的东西(请注意大胆的单词世界!)我将propertyResourceBundle带有message.properties属性文件来加载消息。我在Message.Properties中尝试了这样的事情:
grap.noData.text=Hello <b>world!</b>
但是它不起作用
<p:dataTable id="grapTable" var="row"
value="#{grController.graphics}"
emptyMessage="#{grController.editAllowed ? msg['grap.noData.text'] : msg['grap.noData.readOnly.text']}"></p:dataTable>
I want to add html styled message for empty datatable in Primefaces 10 (emptyMessage property). Something like "Hello world!" (notice bold word world!) I use PropertyResourceBundle with message.properties properties file to load message. I tried something like this in message.properties:
grap.noData.text=Hello <b>world!</b>
but it didn't work
<p:dataTable id="grapTable" var="row"
value="#{grController.graphics}"
emptyMessage="#{grController.editAllowed ? msg['grap.noData.text'] : msg['grap.noData.readOnly.text']}"></p:dataTable>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
emptymessage
facet和seccape =“ false”
这样的...You can do it instead with
emptyMessage
facet andescape="false"
like this...