• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Same image is set for all items in table

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem solved...

 
reply
    Bookmark Topic Watch Topic
  • New Topic