Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic