Writing "Ajaxified" applications from scratch can be a headache. Each row of the dataTable represents a country, and when the user clicks on a row the country location is displayed in the detailed map. View image at full size. In addition to all of these complexities, the JavaScript client code should be cross-browser compatible. So when the user enters a value in the txtName input text and tabs out, the txtEnteredName outputText will be updated with the entered value. Listing 4 shows a partial listing of the mashups. In this application, you have a master dataTable and a detailed map.
Uploader: | Tejar |
Date Added: | 9 November 2004 |
File Size: | 66.10 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 5635 |
Price: | Free* [*Free Regsitration Required] |
Subscribe me to comment notifications. In return, Google provides a key gmals4jsf for your application. Listing 3 shows how easy it is to use JSF 2.
Ajax is now a part of most of modern Web 2.
Java / Oracle SOA blog: Google Maps for JSF (GMaps4JSF) in JDeveloper 11G
You only need to write JavaScript code if you want to implement the components' client-side event handlers.
Note that you can get this managed bean data from a database or a Web service, but for the case of my demonstration it just holds static information about the different countries. Figure 3 shows the project page with the downloads on the right. Ajax is a primary technology in any modern Web application. On the server side, the application must prepare a response that can be understood by the client. In this application, you have a master gmaps44jsf and a detailed map.
Subscribe to RSS
In addition to all of these complexities, the JavaScript client code should be cross-browser compatible. On the client side, you must write a JavaScript client to send the Ajax requests and to receive the Ajax responses.
Listing 4 shows a partial listing of the mashups. Comments Sign in or register to add and subscribe to comments.
JSF Central - GMaps4JSF
GMaps4JSF also allows attaching different server-side and client-side events to components without writing JavaScript code to bind the event with the component. Writing "Ajaxified" applications from scratch can be a headache.

View image at full size. Each row of the dataTable represents a country, and when the user clicks on a row the country location is displayed in the detailed map.
Figure 2 shows an example of tmaps4jsf key on the Google Maps Web site and how it fits into your code. Hazem Saleh Published on August 25, You can also easily attach different components gmaps4jsff, information texts, controls, ground overlays, polygons, polylines to the map.

In this article, you saw how JSF 2. Sign in or register to add and subscribe to comments. So when the user enters a value in the txtName input text and jzr out, the txtEnteredName outputText will be updated with the entered value.
You also saw how it is easy to construct Google maps, and attach different markers, notes, and controls to them using GMaps4JSF. Listing 5 shows the Countries application sample managed bean.
You will need to accept the usage agreement and register the site that you are using for your application. Now the good news is that Ajax is supported natively in JSF 2. Figure 4 shows a screenshot of gmsps4jsf Countries application in action. Download the latest version from the project Web site see Related topics.
Comments
Post a Comment