On 9/21/07, Chris Colman <[EMAIL PROTECTED]> wrote: > I have a number of pages that display a list of items and am wondering > about the best approach to implementing them in Wicket. > > To date I have created a single panel that contains the list and the > markup for that panel holds the discrete markup elements for the fields > in each item of the list. > > Another approach could be to create an individual panel that is > responsible for providing the data for the items in the list. Then the > list page markup just has a reference to that panel instead of holding > the discrete item fields itself. > > I'm just wondering if anyone has used the later approach and with what > success. It probably means there is a little bit of extra work up front > to create the list panel markup and its class but then I end up with a > reusable panel that I would easily be dropped into other pages as > required.
Both work fine. Putting it into a separate panel works good if you want to be able to reuse it in other occasions or want to be able to shove it around. Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
