This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
as far as i can see, i cannot control the output like that. e.g. an entry would be
(1) JavaServer Faces Technology (2) The Java Enterprise Community on java.net The Java Enterprise Community is a gathering place for developers ... (3) java.sun.com/javaee/javaserverfaces/ - 30k - Cached - Similar pages - Note this
where (1) is a larger headerline, (2) is a description with smaller font size (3) is a row that cointans different information, that will have different styles.
Is that possible to create with a datatable?
Joined: Jan 25, 2006
you can have different styles for different columns, all you have to use is a tomahawk column (t:column) as they have a styleClass property.
You can also nest dataTables
So couldnt you have something like,
this way you could nest dataTables and produce the nice output...?
---- Method 2 -----
You could use a dataTable to show rows of search results and a nested panelGrid to display the contents of that searchResult. That would probably be a slightly better idea. You would not need a Information object then, you could jsut store all the data on the searhcResult Object?
This would result in something like this,
I have never tried a nested panel grid but i believe it would work, and would be extremely easy to produce.
John [ January 30, 2007: Message edited by: John Bartlett ]
Joined: Jan 15, 2007
cheers for the reply, the nested elements seems to be a way to get what I want. It will be interesting to see how it goes when i receive the first batch of html docs from the designer.