This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread 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 ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com