Reputation: 1343
Is there a way to have a th header cell tag in xPages? I have searched everywhere for this and found only one question with not answer.
Is it possible? I tried using xp:th but I get an unknown tag error.
Upvotes: 0
Views: 809
Reputation: 1111
I agree with stwissel. I build my tables with "standard" html and use XPages controls inside the table. Doing so, you can also use HTML elements that are not available in XPages, like
<table style="table-layout:fixed;" class="fixedTable">
<colgroup>
<col width="60" />
<col width="190" />
</colgroup>
Using the xp:tag with the tagname attribute might be a more consistent way, but has some unneccessary overhead.
Upvotes: 2
Reputation: 868
Should also be possible using the tagName attribute introduced in Domino 8.5.3.
E.g.
<xp:panel tagName="th"></xp:panel>
or
<xp:text value="I am TH" tagName="th" />
Upvotes: 6