<sigh> I said I disliked the idea of outputting HTML from Java code because this is very much like plain servlets or JSP, both of which are notoriously ugly doing this. Well anyway, if this component is fully theoretical, I guess I can't very well "try it".

        How about this idea?

<div wicket:id="row">
        <div wicket:id="column">
                cell data
        </div>
</div>

It would sort of work like ColumnedDataProvider did but cleaner. In the above example you'd have two instances of the same class (similar to ListView, I'm going to call it MyListView) that would share the same state information. So, allow me to walk you through the rendering process chronologically:

1) Construct MyListView for row, pass in IDataProvider into constructor
2) Construct MyListView for column, pass in row MyListView into constructor
3) Now, when populateItem() is invoked for either the row or column, the item's getIndex() will be shared among the two... what this means is that the index will be relative to the original IDataProvider, not relative to the MyListView passed into the constructor. populateItem() will be passed a DataItem for both row and column.

See what I mean? It's very flexible in that you can nested multiple layers but at the same time the overall state is shared so you know what your actual index is.

        What do you think?

Gili

Igor Vaynberg wrote:
You don't, that was the concept I proposed earlier and the one you said was
bad :)

http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg04192.html

-Igor

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili
Sent: Tuesday, August 16, 2005 10:10 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems


        Where do I find the renderer Java class?

Gili

Igor Vaynberg wrote:

This would be really easy with the renderer :)

try something like this, maybe it will work

<div wicket:id="maindataview">
        <div wicket:id="rowview">
                [cell markup]
        </div>
        <div class="floatfix"/>
</div>

-Igor



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gili
Sent: Tuesday, August 16, 2005 10:02 PM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex problems


        Ok, turns out that using DataView is no good :(

        The markup contains:

         <div wicket:id="imageRow" class="floatfix">
           <div class="imageColumn">
             cell data
           </div>
         </div>

and I only want to issue a "imageRow" once every X columns. The problem, I just realized, is that the imageRow tag wraps a single imageColumn tag and I'd really like for it to wrap multiple imageColumn tags. Any ideas, short of outputting multiple

columns in a
single call to populateItem()? Now I am beginning to see

why it is a
bad idea to only have a concept of cells :(

I can see how to get this working under DataView but it

will result
in a very unelegant solution :(

Gili

Gili wrote:


Right, I think I prefer this method now. I think what

is really
missing in the end is the documentation aspect, not Javadoc but a full-fledged Wiki example for how to use it to produce rows

and columns.


Time-allowing, I'll try posting something to that effect in

the near


future.


-------------------------------------------------------
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


--
http://www.desktopbeautifier.com/


-------------------------------------------------------
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


--
http://www.desktopbeautifier.com/


-------------------------------------------------------
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

Reply via email to