Hi, I have a page with a fairly large DataView table ~2000 rows of information. In each row I have 5 small icons (images) - a total of around 92kb each row. The icons are also links.
There is some significant delay in rendering the page and I believe it must be to do with the icons. If the icons are the cause - could anyone suggest a smarter way perhaps to add the images to the page? I currently simply do the following: final DataView dataView = new DataView("rows", new ListDataProvider(displayList)){ @Override public void populateItem(final Item item) { final Invoice i = (Invoice) item.getModelObject(); if(i.getStatus().equals("CANCELLED") || i.getStatus().equals("STORNO")){ item.add(new AttributeModifier("class", "red")); } else{ if(odd){ item.add(new AttributeModifier("class", "odd")); odd = false; } else{ item.add(new AttributeModifier("class", "even")); odd = true; } } .... AjaxFallbackLink lnk = new AjaxFallbackLink("email"){ @Override public void onClick(AjaxRequestTarget target){ setSelectedInvoice(i); emailScreen.show(target); } }; lnk.add(new Image("emailIcon", new Model("images/email.png"))); item.add(lnk); .... } }; dataView.setOutputMarkupId(true); wmc.add(dataView); wmc.setOutputMarkupId(true); Thanks, Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Lots-of-Images-slowing-rendering-in-DataView-tp4665733.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