Using composite:interface for repeating tables .. Facet not rendering

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Kitkat1963
Posts: 3
Joined: 03 Jun 2019, 19:01

16 Jul 2019, 19:30

Can someone tell me why the header will not show? Normally there is a band with the header name displaying but since I changed the datatable to be dynamic (I need the paginator, etc. for every single table I create), the header band no longer renders.

I'm using Primefaces 6.2 Ultima.

dataTable.xhtml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:composite="http://java.sun.com/jsf/composite"
xmlns:p="http://primefaces.org/ui">

<composite:interface>
<composite:attribute name="value" required="true"/>
<composite:facet name="header" required="true"/>
</composite:interface>

<composite:implementation>
<composite:renderFacet name="header"/>
<p:dataTable
id="dataTable"
var="var"
value="#{cc.attrs.value}"
lazy="true"
paginator="true"
rows="10"
paginatorTemplate="#{messages.paginatorTemplate}"
rowsPerPageTemplate="#{messages.rowsPerPageTemplate}">
<composite:insertChildren/>
</p:dataTable>
</composite:implementation>
</html>

mainPage.html (just a snippet)
<ui:composition
xmlns:crats="http://java.sun.com/jsf/composite/dt" > <---- this is the only line that matters to this post in the ui:compostion.

<ui:fragment rendered="#{info.for.table}">
<div class="ui-g-12">
<div class="card">
<dt:dataTable value="#{yadayada}">
<f:facet name="header">Table header</f:facet>
</dt:dataTable>
</div>
</div>
</ui:fragment>
Primefaces - Ultima

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

18 Jul 2019, 10:34

This issue is not related to Premium Layout/Theme. Please use core forum.

Thanks a lot for understanding.
Best Regards,

Post Reply

Return to “Ultima - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests