String[][] foo = {{"foo", "bar"}, {"foo", "bar"}};
new ListView("rows", Arrays.toList(foo)){
public void populateItem(ListItem item) {
String[] foo = (String[])item.getModelObject();
add new ListView("cols", Arrays.toList(foo)) {
public void populateItem(ListItem item2) {
item2.add(new Label("colvalue", item.getModelObject());
}
}
}
};
should work when you get it compiling.
martijn
Stefan Arentz wrote:
On Jul 18, 2005, at 11:11 PM, Martijn Dashorst wrote:
Stefan Arentz wrote:
Hi.
I want to create panel that creates very dynamic content. It has a
standard header and footer which I can move to the .html but
everything in between is too dynamic to put in the .html. So what
is a good way to handle that? I'm not sure where to start.
What kind of content is in the panel?
I have two. One is like a wiki, so pretty chaotic with regards to
content :-) The other is a table with a variable number of rows and
columns. I looked at ListView but I can't figure out how to actually
build a table. If someone could give a little example on how to
convert for example a String[2][3] array that would be grrreat :-)
S.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user