2012-04-27 58 views
0

我得到了JSF Tomahawk消息,并且这些消息被呈现为一个HTML表格。我如何避免这样的表格?我宁愿为每个消息包含一个段落的所有消息使用一个div。提前致谢。JSF t:消息 - 如何避免表?

我的JSF文件 - 摘录:

<t:messages layout="table" replaceIdWithLabel="true" showDetail="true" showSummary="false" styleClass="mycustomclasswhichgrabsthisshit" /> 
+0

布局= “名单”? – Daniel 2012-04-27 11:42:12

回答

1

检查Tomahawk tag documentation。该<t:messages> tag documentation说以下内容:

Name | Type | Supports EL? | Description 
-------+--------+--------------+--------------------------------------------- 
layout | String | Yes   | The layout: "table" or "list". Default: list 

所以,相应的修复:

<t:messages layout="list" ... /> 

或者只是删除它完全。这已经是默认了。

如有必要,可以删除使用CSS列表子弹:

.mycustomclasswhichgrabsthisshit { 
    list-style-type: none; 
} 

(免责声明:ranty类名是从字面上你的例子复制的,它不是我的)

+0

您的免责声明让我微笑:-)。 – Jochen 2012-04-28 07:46:35