On 1/20/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:
I'm just beginning to go through the examples, beginning with the component references, and began to wonder: Does wicket provide a component designed to make it easy to display arbitrary database result sets or row sets? I.e., a component that displays an arbitrary number of rows and columns?
If you have a preset number of columns to display you can use the DataView in wicket-extensions. if you want the number of columns to be configured at runtime you can use DataTable also in wicket-extensions.
you can find examples of both of these in wicket-examples under repeaters section (outside of component ref)
you can find examples of both of these in wicket-examples under repeaters section (outside of component ref)
If not, and I wanted to build a panel for doing so, what would be the approach? Would I, say, construct a Panel object that contains a ListView, each of whose elements is a ListView -- with the inner ListView's id attached to a <td> tag to build a single row, and the outer ListView's id attached to a <tr> tag to build the set of rows?
exactly. You would use a listview inside a listview to generate the matrix you are after. If you are interested have a look at the wicket-extensions code of repeater package. the components there gradualy build up on each other and add functionality that eventually results in a very high level datatable component.
-Igor
-Igor