Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

groupBy="true" not working  RSS feed

 
Steve Torrefranca
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been struggling with groupBy="true". The Group by column as shown in http://www.irian.at/myfaces/simpleGroupBy.jsf does not work in my code:

<h:dataTable value="#{test.items}" var="item">
<t:column groupBy="true">
<f:facet name="header">
<tutputText style="font-weight: bold;" value="Col1" />
</f:facet>
<tutputText value="#{item.colItem1}" />
</t:column>
<t:column>
<f:facet name="header">
<tutputText style="font-weight: bold;" value="Vendor"/>
</f:facet>
<tutputText value="#{item.colItem2}" />
</t:column>
</t:dataTable>

What am I missing?

Thanks!
 
Bert Bates
author
Sheriff
Posts: 8945
17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there "javacide"

Well, the first thing you're missing is a valid display name ;)

Please update your display name to match our policy, and then we'll all wish you a hearty welcome to the ranch!

Thanks,

Bert
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you start a <h:dataTable> and close the tag with </t:dataTable>

is that a typo?
 
Steve Torrefranca
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, yes it was just a typo. It should have been t:dataTable
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!