Martijn,
thank you, I'll try that!
- Johannes
Martijn Dashorst wrote:
Nest two listviews.
Wicket allows you to do so:
<table>
<tr wicket:id="rows">
<td wicket:id="cols"><span wicket:id="panel"/></td>
</tr>
</table>
add(new ListView("rows", rowsList) {
public void populateItem(ListItem row) {
item.add(new ListView("cols", (List)row.getModelObject()){
public void populateItem(ListItem col) {
col.add(new Foo("panel"));
}
}
);
}
});
Martijn
Johannes Fahrenkrug wrote:
Hello Wicke(t/d) users,
I'm wondering if someone already solved this one or if there is a
best practice for it:
I have to display a table with a variable number of rows and a
variable number of columns.
The purpose of it is this: I am writing a booking application and
every trip can have a variable number of
little extras that you can book on top of the main trip (a special
dinner, a boat ride and so on). Each one of those extras can be
booked in different categories and different roomtypes (if the guest
has to stay over night).
So it might look something like this:
DDC = DropDownChoice for Category
DDR = DropDownChoice for Roomtype
Homer
Lenny Carl
Chinese Dinner DDC, DDR DDC, DDR
DDC, DDR Boat Trip DDC, DDR DDC,
DDR DDC, DDR
Visit to the Powerplant DDC, DDR DDC, DDR DDC, DDR
I have a list of POJOs for the customers and I have a list of POJOs
for the extras.
Oh, and the booking of these extras is optional, of course. So for
example it should be possible that only Lenny books the Boat Trip (by
selecting a category and a room type for it)
Any suggestions are appreciated.
- Johannes
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user