[英]Apache MyFaces Trinidad: <tr:column/> generate html
The html that generate from tr:table contains th for the header and td for the row data which is good. 从tr:table生成的html包含标题的th和行数据的td,这很好。
my problem is that i want to style to the 'th' element 我的问题是我想将样式设置为“ th”元素
When I added style to tr:outputText this does not effect. 当我向tr:outputText添加样式时,这不会起作用。
The style that I trying to add is - text-align:right 我尝试添加的样式是-text-align:right
how can i do this how can I control the html that being generated from jsf (Trinidad is this case) 我该怎么做,如何控制从jsf生成的html(这种情况是特立尼达)
my code 我的代码
<tr:table value="#{myManagedBean.allEmployees}"
bandingInterval="2" banding="row" var="emp">
<tr:column>
<f:facet name="header">
<tr:outputText value="Name"/>
</f:facet>
<tr:outputText value="#{emp.ename}"/>
</tr:column>
<tr:column>
<f:facet name="header">
<tr:outputText value="Department Number"/>
</f:facet>
<tr:outputText value="#{emp.deptno}"/>
</tr:column>
</tr:table>
Any one ? 任何人 ?
you can fiddle around with the trinidad skin selectors. 您可以摆弄特立尼达皮肤选择器。 So put this inside your trinidad-skin.css:
因此,将其放入您的trinidad-skin.css中:
af|column::sortable-header-text
{
text-align: right;
}
Further Information for trinidad-skinning: http://myfaces.apache.org/trinidad/skin-selectors.html 特立尼达皮肤的更多信息: http : //myfaces.apache.org/trinidad/skin-selectors.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.