Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Carey Brown
  • Frits Walraven

Same image is set for all items in table

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a book store app, in which users can buy or rent books. And, when user buy book , book is added to userCatalogue list. Then when user clicks on MyCatalogue button, table is shown with two columns - first contains book front page image, and second contains description about book. (path to image and description are atributes in Book class).
When I buy first book, image is good. But then, when I buy second, third etc. book, image for all books are changed in last book image. ( all book images are equals to last book image)
(description column works good)
Code for table

I think this is not good way, becouse there is a list of book objects, and one image view, so that is why is for all books same image, from last book, but I have no idea how to fix it. Appreciate any help/hints.
Milan Gogic
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem solved...

Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter
    Bookmark Topic Watch Topic
  • New Topic