The final part of managing the AJAX response is to respond to the users interactions, by translating the given amount into the selected currency using the dynamically retrieved foreign exchange rates. In this lesson you will see an AJAX application in act
- [Instructor] Now that we're listening to those…list box selections,…we need to create a method that will take the selection,…hit the web service with that new base.…Like I said, we can specify the base.…We're in the URL, we add in a query of base=,…and that would be whatever the selection was.…So if the user selected AUD or USD or ZAR.…Whatever the selection is,…we add it to this URL,…and then you get the conversion rates…for that base currency.…So in our code, we need to handle what the selection is,…and call a method to update the amounts.…
In the exercise files, you'll find that this code…has already been created for you.…I just haven't commented it out.…So what we have here in this first line is,…in the handleRateSelection, I'm calling a new method…that actually parses in what the first selected rate is.…So the selected item for the primary rate list…is parsed to a new method called setConversionDataUi.…This method, as you may have noted from the name,…is almost identical to the first method…that we created when the page is first loaded,…
In this course, learn how to build high-performance, browser-based apps using GWT. Kyle Gower-Winter introduces you to GWT, explaining the benefits of using this toolkit to build dynamic web pages. To help you practice what you learn, he shows how to build a simple foreign exchange rate application. Plus, Kyle covers managing AJAX events on the client, handling UI action events, debugging code, and more.
- Creating and running a GWT application
- Working with GWT widgets and UiBinder
- Manage AJAX events on the client
- Using a GWT RequestBuilder object
- Debugging in the browser
- Setting breakpoints and inspecting variables
- Running locally in production mode
Skill Level Intermediate
Building Web Applications with Ajaxwith Sasha Vodnik1h 31m Intermediate
Java: Build Automation with Mavenwith Peggy Fisher1h 24m Intermediate
1. Create and Run a GWT Application
2. GWT Widgets and UiBinder
3. Manage AJAX Events on the Client
4. Debugging in the Browser
5. Run Locally in Production Mode
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.