This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I want to display data using the h:dataTable tags in JSF The data I am displaying has to be in a format like this:
I have seen several examples on the web that tell you how to display the
data like this:
Name ID Age
XXX 8989 32
Since the dataTable tag only has a sub tag h:column and NO h:row I am having issues with this. Is there a better way to do this? I have implemented the first format I mentioned using h:datable and h:column, so first I just write out all the column headers in column 1 and then I write out all the values in column2. The issue I am facing is that when one of the values is blank the next value gets printed in its place and the data appears wrong, this is really a formatting issue. When data is blank it should leave space for it and then print the next value in the next row. Hope I am making sense, any thoughts will be much appreciated.
Is there a better way to do this maybe by not using h:dataTable (I am using JSF ), is my approach correct?
you need "newspaperOrientation" attribute but if your project using using tomahawk then only you can use this tag.
Joined: Jun 08, 2007
Thanks Nitin for pointing me to the other post about the same issue. i am not using Tomahawk, also the code I currently have is like so. The first column just writes out labels for the column names and the second column the values.
Joined: May 19, 2005
either you have to create new datatable or bind datatable generate columns using tags.. HTMLColumn and HTMLDataTable.