This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
I have some nice code in Jstl that makes everything look reeeal 'purdy... it's just a <c:forEach> loop (as below) and it means I can display my data any dang way I want. I'm sure we are all comfortable with this idea, even in cowboy parlance.
however, i may switch to JSF but I can only get my data in a dataTable, with its grey and white lines looks like some city slicker is coming down to repo the farm, in all its uinformed grey and white, boxed in fandangeled layout.
on the sun site , looky here , it says:
The forEach tag does not work with JavaServer Faces tags due to an incompatibility between the strategies used by JSTL and and JavaServer Faces technology. Instead, you could use a renderer, such as the Table renderer used by the dataTable tag, that performs its own iteration. The if, choose and when tags work, but the JavaServer Faces tags nested within these tags must have explicit identifiers.
i sure ain't had much book learn'n but mabe the answer is in here, do i use a "Table Renderer", will it give me the same control as the <c:forEach>(as below).
I'd be mighty obliged if you could point this lost cowboy to the nearest saloon.
Well lookee here we got ourself a real teaser here. Myself, I reckon you need to mix a dataTable with a panelGrid, and maybe a smatterin' of panelGroups chucked in for good measure. It might need a bit of work to get it done, but it should be doable.
BTW you haven't included your table tag in your code. But most attributes you can put on a table you can include on the dataTable tag, so you should be able to duplicate it. If you want multiple things in one table cell group them together with a panelGroup tag.
That should be more than enough to get you started. [ December 04, 2005: Message edited by: Stefan Evans ]