That is my next move, I was just wondering if there was a simpler way. Looking at that example code, its already looks really simple - I was just being lazy.
Thanks! Ryan On Mon, Mar 03, 2008 at 07:10:07PM -0500, James Carman exclaimed: >Have you tried GridView? There's a good example here: > >http://www.wicketstuff.org/wicket13/repeater/ > > >On 3/3/08, Ryan <[EMAIL PROTECTED]> wrote: >> I'm having a hard time finding the "Wicket way" to accomplish a simple 2 >> column table. >> >> I have a List<String> with: { "Item 1", "Item 2", "Item 3", "Item 4" } >> >> I have a page that looks like this: >> >> <table> >> <tr wicket:id="list"> >> <td> >> <span wicket:id="label" /> >> </td> >> </tr> >> </table> >> >> The effect I want to achieve is a 2 column table like: >> <table> >> <tr> >> <td>Item 1</td> >> <td>Item 2</td> >> </tr> >> <tr> >> <td>Item 3</td> >> <td>Item 4</td> >> </tr> >> <table> >> >> The ListView component (as expected) prints a </tr><tr> tag after each >> item. Is there a simple way to achieve what I am trying to do without >> using the grid based components that require a data provider (which is >> overkill for what I need to do)? >> >> I found ListDataProvider which I can use with GridView, but I'm still >> wondering if there is a simpler way. >> >> Thanks! >> Ryan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
