• Post Reply Bookmark Topic Watch Topic
  • New Topic

dataTable columns can't include markup?

 
Mike Litherland
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm doing some pretty complex stuff with dataTable, including nesting dataTables within dataTables. I'm a little suprised that any HTML markup I include with the <h:column> appears before the table and not within the cell. Here's an example:

There's just one column for the table and a number of rows pulled from a database.

Any idea why this won't work? I don't particularly want to include a pile of <h utputText value="markup" escape="false"/>...

Thanks,
Mike

[ January 10, 2006: Message edited by: M Litherland ]
[ January 10, 2006: Message edited by: M Litherland ]
 
Mike Litherland
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I *always* manage to find my own solution just after I post it here... Buried in the small print of my Core JSF book I notice a mention about using the <f:verbatim> tag within <h:column> tags. That's going to produce some ugly JSP pages, but I guess there's no other choice.

Thanks anyway,
Mike
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using MyFaces they have an HTML tag that is pretty easy to use. Or you could use the HTML Layout Tag Library which works with pretty much any JSF Impl. I've used both without problems. And it's a bit nicer than using verbatim tags everywhere.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!