Basically a table renderer would look something like this:
Class tablerenderer implements igridrenderer {
begin(...) {}
beginRow(GridView view) {
view.getResponse().write("<tr>");
}
beginCell(GridView view) {
view.getResponse().write("<td>");
}
...
}
Mmm this gives me an idea, we can have an excelrenderer or a csvrenderer,
etc.. Almost like an exporter.
-Igor
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gili
> Sent: Tuesday, August 16, 2005 2:36 PM
> To: [email protected]
> Subject: RE: [Wicket-user] Re: ColumnedDataProvider
> startIndex problems
>
>
> Looks ok I think although I'm not too familiar with
> this whole concept of a seperate renderer. I'd have to try it
> to see what I think :)
>
> Gili
>
> > How about this idea:
> > We have a gridview extends dataview. A gridview takes a render
> > interface that it uses to render the grid (instead of body
> markup), so
> > we can have a tablerenderer or cssrenderer or whatever, and the
> > interface would roughly look like this:
> >
> > Interface IGridRenderer {
> > begin(GridView view);
> > beginRow(GridView view);
> > beginCell(GridView view);
> > endCell(GridView view);
> > endRow(GridView view);
> > end(GridView view);
> > }
> >
> > Basically this is the same as my first post that inserted the html
> > directly but now its tucked away in a renderer. This way we
> don't have
> > the unnceessary row-wise views and you can even use OIR
> cleanly since
> > it is basically a dataview.
>
>
> -------------------------------------------------------
> 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