Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Same image is set for all items in table

 
Milan Gogic
Greenhorn
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
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem solved...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic