File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems when using a datable within a form: currently my code is clunky

 
Christopher Whu
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the end i want to be able to create a method that will allow me to update Product Qty and then update my shopping cart data with one click...

should i inject the item into the shopping cart? I am going to try that but in the mean time i would like to know what you guys thing is the best way...


jsf page


my ShoppingCart bean


my Item bean
 
Christopher Whu
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually to simplfiy things, if i could get the id of the button clicked i would be able to do what i want...
 
Christopher Whu
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i cant believe how simple it was....

putting this method in my ShoppingCart bean


and firing it from the jsf page - java, all by itself was smart enough to take the date from my jsf form first... by itself it updated the object referenced by



no injection, no table modeling.... it did this all by itself... This is amazing!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic