jsf Trinidad: Change tr:table header
I have a tr:table with the rowSelection property set to "single". It draws a extra c开发者_StackOverflow社区olumn with a radio buttons inside. But I want to change the text displayed at that column's header. I don't find any property that allow me to accomplish this. I guess I should overwrite some properties file but I haven't found anything on this topic in the Trinidad documentation.
Thanks.
As Trinidad itself doesn't seem to offer this, you can do it with javascript. It is not a clean solution, but it will work.
First, open the generated html code and find the in which you are interested. If it has an ID - document.getElementById("yourformname:tdId")
. If it doesn't, try accessing it with getElementsByTagName("td")
called on the table. When you have it, set its innerHTML
to whatever text you want.
It is an ugly workaround, but will possibly work
精彩评论