• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

found the problem..

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

Works now.

Cheers, Axel
 
reply
    Bookmark Topic Watch Topic
  • New Topic