Btw it's a very bad idea to work on the sourcecode directly as opposed to extending a class because you wont always be able to merge the latest changes back into your code. -Igor
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Igor Vaynberg > Sent: Tuesday, August 16, 2005 11:41 PM > To: wicket-user@lists.sourceforge.net > Subject: RE: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > There is no magic in add(). imageRow.add(imageCell) wont work > because it needs to be added to the dataitem, that's what > populateItem is for. In fact the add() function in the > dataview should probably throw an unsupported operation exception. > > -Igor > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > > Sent: Tuesday, August 16, 2005 11:25 PM > > To: wicket-user@lists.sourceforge.net > > Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex > > problems > > > > > > I've almost got my prototype ready for testing but I'm having a > > initialization problem. My markup reads: > > > > <div wicket:id="imageRow" class="floatfix"> > > <div wicket:id="imageCell" class="imageColumn"> > > foo > > </div> > > </div> > > > > and wicket is complaining about not finding "imageCell" > even though I > > bind it on the Java end using: > > > > add(imageRow); > > imageRow.add(imageCell); > > > > I suspect DataView uses some sort of special magic > implementation for > > add(). Can you please take a look (see attached file) and > see if you > > can find something wrong? > > > > I'm initializing one DataView for the imageRow, passing in a > > IDataProvider. Then I initialize another DataView for > imageCell, pass > > in imageRow into the constructor. > > > > Thanks, > > Gili > > > > Igor Vaynberg wrote: > > > I don't understand what you are talking about below...share > > state? In > > > order for your markup to be nested like that you are going > > to have to add "column" > > > to "row" which will make "row" repeat "column" > > dataprovider.count() times. > > > Not sure that's what you want..... > > > > > > Why don't you try it and tell us if it works. > > > > > > -Igor > > > > > > > > > > > >>-----Original Message----- > > >>From: [EMAIL PROTECTED] > > >>[mailto:[EMAIL PROTECTED] On Behalf Of Gili > > >>Sent: Tuesday, August 16, 2005 10:36 PM > > >>To: wicket-user@lists.sourceforge.net > > >>Subject: Re: [Wicket-user] Re: ColumnedDataProvider startIndex > > >>problems > > >> > > >> > > >> <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/[EMAIL PROTECTED] > t/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 > > >> > > >> > > >> > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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