Sorry that I didn't give the proper information, actually we are showing 10 records per page and the size of the list is 70000 which we are passing to PageableListview..It seems listview is loading all 70000 items at once..and each request it probably might iterating the List..so I think loading whole list at once is giving the out memory exception below is the code we are using.. Please suggest a solution asap.
PageableListView<UserProfile> userProfileDisplay = new PageableListView<UserProfile>("userProfileDisplay",userProfileDTOsList,10) { @Override protected void populateItem(ListItem<UserProfile> listItem) { final UserProfile userProfileModel = listItem.getModelObject(); listItem.add(new Label("userId", userProfileModel.getUserId())); listItem.add(new Label("userName", userProfileModel.getUserName())); listItem.add(new Label("appGroup", userProfileModel.getGroupName())); listItem.add(new Label("createdDate", pattern.format(userProfileModel.getCreatedDate()))); listItem.add(new UserDetailsPanel("userdetails",getUserProfileManager().getUserProfileByUserIdAndGroup(userProfileModel.getUserId(),userProfileModel.getGroupName()))); final Link<String> editLink = new Link<String>("edit") { /** * */ private static final long serialVersionUID = 5688344743264794845L; @Override public void onClick() { UserProfileAddPage userProfilePage = new UserProfileAddPage(userProfileModel,true,userProfileDisplay.getCurrentPage(), null); setResponsePage(userProfilePage); } }; listItem.add(editLink); final Link<String> deleteLink = new Link<String>("delete") { /** * */ private static final long serialVersionUID = 5688344743264794845L; @Override public void onClick() { // boolean isDeleted = getAppProfileManager().deleteApp(appProfileDTO.getAppId()); // if(isDeleted){ // PageParameters pageParameters = new PageParameters("message=Deleted Successfully"); // setResponsePage(UserProfileDisplayPage.class,pageParameters); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/pageablelistview-is-giving-out-of-memory-exception-while-loading-more-than-70000-records-wicket-exame-tp4631614p4631717.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org