• 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:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

how do I achieve below on the webPage

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a webPage that displays the date field and the products for that day.

Is it possible to dynamically load (refresh) the products from the database table , when the user selects a different date. Then he actually submits the request to display the product details available on that particular day.

Should I use AJAX for this?


Thanks,
Trupti
 
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by trupti nigam:
Hi all,

I have a webPage that displays the date field and the products for that day.

Is it possible to dynamically load (refresh) the products from the database table , when the user selects a different date. Then he actually submits the request to display the product details available on that particular day.

Should I use AJAX for this?


Thanks,
Trupti



of course it is possible, all you have to do is whenever the user changes a date , the Page submits itself via javascript and a new product details would be shown. Yes you can also do it via ajax by using ajax4jsf libraries
 
trupti nigam
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Abiodun Adisa:


of course it is possible, all you have to do is whenever the user changes a date , the Page submits itself via javascript and a new product details would be shown. Yes you can also do it via ajax by using ajax4jsf libraries



Thanks For the prompt response. I knew that I have to use the AJAX tachnology. But I have never used it. And I need to finish this task within a day or two. What is the good starting point. I started reading the w3schools.com. But do you have any example as to how this is achieved/

Thanks,
Trupti
 
Could you hold this puppy for a sec? I need to adjust this tiny ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic