Mohamed
Mohamed

Reputation: 2352

Wicket multiple listViews

I have a list of values and i would sort them by there domain and display them, and on loading i don't know exactly the list's items so i can't make it static. So can we create, dynamically a listView of listView or is there any component which do a particular hierarchic like this:

*List1:

*List2:

Upvotes: 0

Views: 155

Answers (2)

Andrew Fielden
Andrew Fielden

Reputation: 3899

Yes you can do this. For example, your HTML may have the following structure:

<table>
  <tr wicket:id="outerList">
    <td>
      <table>
        <tr wicket:id="innerList">
          <td>....</td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Your Java code would follow the same structure, but I'll leave that as an excercise for you to learn something.

Upvotes: 0

Nicktar
Nicktar

Reputation: 5575

Nothing prevents a ListView from containing more ListViews in its items.

As a side-note: Judging from your other questions during the last few days, maybe it's a good idea to start with some literature like Wicket in Action or the examples at the wicket homepage.

Upvotes: 2

Related Questions