Note that there are some explanatory texts on larger screens.

plurals
  1. POWrong styling of p:dataTable with f:facet name="header"
    primarykey
    data
    text
    <p>I am showing data in a <code>&lt;p:dataTable&gt;</code>, but it shows like this</p> <p><img src="https://i.stack.imgur.com/4mL4W.png" alt="enter image description here"></p> <p>The view markup is straightforward:</p> <pre><code>&lt;h:form&gt; &lt;p:dataTable id="campaignSummaryTable" var="mout" value="#{campaignSummarySearchRes.summaryList}" height="500" scrollable="true" &gt; &lt;p:column&gt; &lt;f:facet name="header"&gt;&lt;h:outputText value="Campaign Code"/&gt;&lt;/f:facet&gt; &lt;h:outputText value="#{mout.shortCode}"/&gt; &lt;/p:column&gt; &lt;p:column&gt; &lt;f:facet name="header"&gt;&lt;h:outputText value="Message"/&gt;&lt;/f:facet&gt; &lt;h:outputText value="#{mout.message}"/&gt; &lt;/p:column&gt; &lt;p:column&gt; &lt;f:facet name="header"&gt;&lt;h:outputText value="Option 1"/&gt;&lt;/f:facet&gt; &lt;h:outputText value="#{mout.option1}"/&gt; &lt;/p:column&gt; &lt;p:column&gt; &lt;f:facet name="header"&gt;&lt;h:outputText value="Option 2"/&gt;&lt;/f:facet&gt; &lt;h:outputText value="#{mout.option2}"/&gt; &lt;/p:column&gt; &lt;p:column&gt; &lt;f:facet name="header"&gt;&lt;h:outputText value="Option 3"/&gt;&lt;/f:facet&gt; &lt;h:outputText value="#{mout.option3}"/&gt; &lt;/p:column&gt; &lt;p:column&gt; &lt;f:facet name="header"&gt;&lt;h:outputText value="Option 4"/&gt;&lt;/f:facet&gt; &lt;h:outputText value="#{mout.option4}"/&gt; &lt;/p:column&gt; &lt;p:column&gt; &lt;f:facet name="header"&gt;&lt;h:outputText value="Other"/&gt;&lt;/f:facet&gt; &lt;h:outputText value="#{mout.other}"/&gt; &lt;/p:column&gt; &lt;/p:dataTable&gt; &lt;/h:form&gt; </code></pre> <p>How I can solve this issue? The header and the content should have the same column width.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload