Behaviour of UIInstructions in DataTable Header

UI Components for JSF
Post Reply
buett
Posts: 23
Joined: 13 Apr 2010, 13:12

26 May 2010, 17:43

Hi,

We have switched <h:dataTable> to primefaces DataTable with Primefaces 2.0.2.
That causes a problem with rendering header facets with plain facelets (UIInstructions) EL Expression.

see example:

<p:dataTable value="#{myBean.list}" var="var"
id="myTable"
rows="20">

<p:column id="col1">
<f:facet name="header">#{amsg.courseNumber}</f:facet>
<h:outputText id="col1_text" value="#{var.col1}"/>
</p:column>
...
</p:dataTable>

The DataTableRenderer does not cause the UIInstructions component to render itself. The DataTableRenderer does toString() instead. But if UIInstructions is an EL Expression, the plain expression is written to output.

The h:dataTable works fine also with ElExpressions in UIInstructions. Is it possible to have the same behavior for primefaces datatable?

regards Marcus

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 May 2010, 12:28

Hi Marcus,

You are right, it is a known issue;

http://code.google.com/p/primefaces/iss ... ail?id=742

buett
Posts: 23
Joined: 13 Apr 2010, 13:12

29 May 2010, 21:59

Ok, thx!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 May 2010, 00:46

You are welcome, this will be fixed by next week hopefully. We've added it to the list of issues for next release.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests