Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

backBean add to list Problem

 
Zaeed McColin
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys, I'm new in JSF
I developed a manage bean, (4 JSP use this bean)
It's should like work such as shopping cart

but it's can not work, and return error when I want add a new item to list

and the code


 
Zaeed McColin
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
funny bug
I'm really sorry for self :thumbdown:

I have to declare my listCart


 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad you fixed it yourself, but in the future you should not ignore any exceptions you got, but invesitgate them and in case you stucks, share them with us. Post them with the complete stacktrace. Exceptions tell something about the cause of the problem and thus, when you understand them, a solution should be obvious enough. You as developer should really know that better.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic