Thomas, The DataView allows for custom markup.
See: http://www.wicket-library.com/wicket-examples/repeater , http://wicket.sourceforge.net/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/data/DataView.html On 26/05/07, Thomas Singer <[EMAIL PROTECTED]> wrote: > I want to create a table with different rows as shown at > http://www.syntevo.com/smartcvs/download.jsp . As you can see there are > following kind of rows: > - header/title (e.g. "Application Details"), > - version information > - separator (maybe can be replaced by stylesheet tuning) > - download link > > I prefer to have prototypes for each row variant in my markup file, e.g.: > ... > <table class="download"> > <tr wicket:id="header"> > <td colspan="3" class="header" wicket:id="text">Header</td> > </tr> > <tr wicket:id="version"> > <td class="indentedText">Version:</td> > <td nowrap class="version" wicket:id="number">1.2.3</td> > <td nowrap class="changelog"> > <a href="changelog.txt">Change Log</a> > </td> > </tr> > <tr wicket:id="separator"> > <td colspan="3" class="separator"> </td> > </tr> > <tr wicket:id="download"> > <td colspan="2" nowrap class="indentedText" > wicket:id="description">Description</td> > <td nowrap class="downloadLink"> > <a href="foo" wicket:id="link">Download</a> > <br/> > <div class="downloadSize" wicket:id="size">(12,345,678 bytes)</div> > </td> > </tr> > </table> > ... > > and want to tell from the page class instance what should be displayed: > > public class Download extends OurWebPage { > ... > final ListContainer container = ... > container.add(new Xxx("id0", "header") > .add(new Label("text", "Application Details"))); > container.add(new Xxx("id1", "version") > .add(new Label("number", "6.0.1"))); > container.add(new SeparatorXxx("id2", "separator"); > container.add(new Xxx("id3", "header") > .add(new Label("text", "Windows"))); > container.add(new Xxx("id4", "download") > .add(new Label("description", "Windows with JRE")) > .add(new Link("link", "http://...")) > .add(new Label("size", "(16,543,432 bytes)"))); > ... > } > > Is there something like a ListContainer available which just renderes all > child components behind each other? What type the Xxx component should be - > something like Fragment? Or better should I create an own > WebMarkupContainer-derived component? > > -- > Thanks in advance, > Tom > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > -- Ryan Gravener fbb55c59d619f3cd68ac4f70ebeca372 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
