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.
-Igor
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gili
> Sent: Tuesday, August 16, 2005 1:40 PM
> To: [email protected]
> Subject: RE: [Wicket-user] Re: ColumnedDataProvider
> startIndex problems
>
> > I told you I didn't like it :) The whole process should
> be smoother,
> > why cant the internal view simply get the iterator from the
> external
> > view and use that. Why have a whole other wrapper/provider
> to implement.
> >
> > What is this offset? When using pageddataview you should
> use the page
> > number to offset, when using a normal dataview you should
> use setfirstindex().
> >
> > -Igor
>
> I also agree it's not as smooth as it should be, but I
> also explained in the previous email why
> DataView.setFirstIndex() will not work. This should all be
> refactored into a new component that is column-aware instead
> of having to use ColumnedDataProvider like we do now. I don't
> think there is a cleaner way.
>
> Gili
>
>
> -------------------------------------------------------
> 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