This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding a caption to h:dataTable

 
Wally Hartshorn
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having trouble finding any information about how to add a <caption> to an <h:dataTable>. There doesn't seem to be anything like <h:caption>, so I tried this:


As you might expect, it dumps out the <caption> just before the <table> begins. Not what I wanted.

Can anyone help?

Thanks in advance!
Wally
 
Eddy Lee Sin Ti
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use facet to put a header for your table.



You can use f:verbatim to enclose large html text
[ February 06, 2006: Message edited by: Eddy Lee Sin Ti ]
 
Wally Hartshorn
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately, that doesn't seem to work. I tried this code:

and got this result:

instead of the desired result:

I tried changing "<f:facet name="caption">", but that's apparently not valid, as the caption doesn't appear at all.

Is there no way to add a <caption> to a <h:dataTable>?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic