Wow cool. And if I'd want my 'traditional' approach I could maybe even add
a renderer which makes DataViews per row?
On Tue, 16 Aug 2005 14:46:37 -0700, Igor Vaynberg <[EMAIL PROTECTED]>
wrote:
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: wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Christian Essl
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user