Err...
LazyDataProviderDecorator implements IDataProvider...
-Igor
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Igor Vaynberg
> Sent: Tuesday, August 16, 2005 9:49 PM
> To: wicket-user@lists.sourceforge.net
> Subject: RE: [Wicket-user] DataView.clearCachedItemCount()
> 
> clearCachedItemCount() is part of an internal contract. I 
> don't see why the code you mentioned is part of the dataview. 
> You can write a LazyDataProviderDecorator that would 
> implement the count() just like what you described:
> 
> LazyDataProviderDecorator {
>       int count() {
>               if (delegate.count()==0) {
>                       initializedelegate();
>               }
>               return delegate.count();
>       }
> 
> ...
> 
> }
> 
> Does that make sense?
> 
> -igor
> 
>  
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Gili
> > Sent: Tuesday, August 16, 2005 9:38 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Wicket-user] DataView.clearCachedItemCount()
> > 
> > Hi Igor,
> > 
> >     I'd like clearCachedItemCount() to become protected 
> (right now it is
> > private) because my code does the following:
> > 
> > - Check the number of images in the DataProvider
> > - If the image count is zero, it means we need to lazily-initialize 
> > the image gallery (where the DataProvider is reading from)
> > - Populate the gallery, reset the itemCount and continue ...
> > - Rendering process kicks in, it should see a non-zero 
> value for item 
> > count.
> > 
> >     Is this a decent use-case? Are you fine with upgrading 
> accessibility 
> > to protected?
> > 
> > Thanks,
> > Gili
> > --
> > 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
> 
> 
> 




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