cxn On 27 Jun 2015 21:22, "Sven Meier (JIRA)" <[email protected]> wrote:
> > [ > https://issues.apache.org/jira/browse/WICKET-5937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604317#comment-14604317 > ] > > Sven Meier commented on WICKET-5937: > ------------------------------------ > > If you take a look at ListDataProvider#getData(), you'll notice that it is > indeed called twice: once for determining the #size() of the dataProvider > and once the #iterator() over the data is requested. > > I don't see any difference between 1.5.x and 6.x here. > > If you're loading the data list lazily, I'd suggest you implement > IDataProvider directly instead. > > Or provide a quickstart if you still think something is going wrong. > > > ListDataProvider calling getData() twice after upgrade to wicket6 > > ----------------------------------------------------------------- > > > > Key: WICKET-5937 > > URL: https://issues.apache.org/jira/browse/WICKET-5937 > > Project: Wicket > > Issue Type: Bug > > Components: wicket > > Affects Versions: 6.6.0 > > Reporter: Mark Christopher Newman > > Assignee: Sven Meier > > Priority: Minor > > > > We are upgrading our wicket from 1.5.6 to 6.6.0 > > and have broken one of our pages that uses ListDataProvider. > > The method getData() is called twice. Previously it was called once. > > Couple of questions. could I be doing something that calls getData()? > > Looking at the stack in debug. The first call looks like its driven by > getViewSize whereas the second call is getItemModels. > > Thanks > > Mark > > > > -- > This message was sent by Atlassian JIRA > (v6.3.4#6332) >
