• Post Reply Bookmark Topic Watch Topic
  • New Topic

myfaces datatable  RSS feed

 
James Clinton
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some please help me getting the datatable to work. currentl jsf fails because:

Facet Tag can only have one child UIComponent



However all the examples I have seen allow this
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what error do you get? Post the complete code may be problem is in some other part of the code
 
James Clinton
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As requested:



exception:

 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi James,

<t:commandSortHeader> tag can only be nested inside an extended datatable ie. <t:dataTable>. so use <t:dataTable> in your code instead of <h:dataTable>

Hope it resolves the issue
 
James Clinton
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sadly, this still throws up the same error.

xmlns:t="http://myfaces.apache.org/tomahawk"
 
Steven Gollery
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James,

Are you using facelets? I had the same problem until I got Tomahawk 1.1.5 SNAPSHOT and followed the directions in FaceletsReadMe.txt.

Steven Gollery
 
James Clinton
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was due to a class loading issue.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!