File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes empty table column header on a dataTable when trying to fill it dynamically... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "empty table column header on a dataTable when trying to fill it dynamically..." Watch "empty table column header on a dataTable when trying to fill it dynamically..." New topic
Author

empty table column header on a dataTable when trying to fill it dynamically...

Axel Wittich
Greenhorn

Joined: Jan 28, 2009
Posts: 12
Hello all,

I currently have a problem with a dataTable.

I want to display the value of a data object as table column header - the object contains data (when I use it to populate a row, the data is displayed), but it is not displayed within the table header (see 3rd column):



There are no errors or log messages or whatsoever...

..any help appreciated!

Thanks & Cheers, Axel
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
ThereĀ“s only one header and there is an undefinied amount of rows.
How should it know which one to pick for the header value?

Obtain it from #{statusResultOverview} or from some resource bundle.
Axel Wittich
Greenhorn

Joined: Jan 28, 2009
Posts: 12
Hello Bauke,

okaaaay - there are some lessons learnd out of this:

1.) My predecessor (the one, from whom I inherited the GUI I'm currently trying to change) wasn't a JSF expert, either.
2.) Check syntax before asking, Doh!
3.) (Oh, my!)

Mea maxima culpa - sorry for bothering you with this!

Thanks & cheers, Axel

P.S.: Ripleys believe it or don't: The displayed code works as long as you do not try to apply dynamic values to the headers...
Axel Wittich
Greenhorn

Joined: Jan 28, 2009
Posts: 12
Hi all,

ok, 2nd try - with no success...



Problem resides - the header columns are still left blank (however, when I add some strings around the member these are displayed correctly...)

Another thing: I get errors all around this GUI when accessing a dataTable variable:



I tried to find out, where these come from, but the data object is filled correctly and the content is displayed correctly, too - the var is only referenced within the dataTable - I have no clue where this does come from...

Thanks & cheers, Axel

Axel Wittich
Greenhorn

Joined: Jan 28, 2009
Posts: 12
Hi all,

found the problem..

I tried to display a list in a single field output...

Works now.

Cheers, Axel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: empty table column header on a dataTable when trying to fill it dynamically...