I don't have any suggestion for now about your first question. And I'm sure Igor's suggestion about the GridView is probably a more robust solution, but here's how I've done the second:

Andrew Berman wrote:
I also have another list I want to do this with:

<tr class="even">
     <td>Something here</td>
</tr>
<tr class="odd">
     <td>Something else here</td>
</tr>

    <.tr class="even" wicket:id="myRow">
      <.td>Something here<./td>
    <./tr>


    add(new ListView("myRow", myList) {
        public void populateItem(final ListItem listItem) {
            if (listItem.getIndex() % 2 == 1) {
                listItem.add(new AttributeModifier("class",
                        new Model("odd")));
            }
            // ...
        }
    });

Good luck,

  -- Scott



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to