From: Fleming L. <zd...@ya...> - 2007-05-19 20:27:27
|
GPSI Announces Market Attack Into $1 Trillion Market! Global Payment Solutions Symbol: GPSI Price: $0.03 GPSI announced its plans to address the huge influx of immigrant workers into the US that need banking solutions that they otherwise would not qualify for. This market is expected to represent over $1 Trillion dollars to be managed by 2008. GPSI provides viable solutions to this market. This is hot, read the news and watch for more Monday! Get on GPSI first thing Monday! On the other hand, Google Maps is fast and easy to use because it supports Ajax-based drag-and-zoom. And the best part is that you can use the JavaServer Faces components you already know and use without modifying them. A future article in this series will address that topic. Yahoo Maps JavaScript Ajax API Recall that, for this sample portlet, you use the Yahoo Maps JavaScript Ajax API to create a mashup. In the page fragment, I used a Group Panel component to wrap the jMaki tag. This week, I'll describe how I used the jMaki fisheye widget to implement the same use case in a Phobos application. Do not use this ID except for learning purposes. It gets its data from the europeCities. The rest of the code in view. For the latest AJAX features of Sun Java Portal Server, visit his screencast. The session management facilities of the servlet API may easily used to track whether or not a conversation has been established. This time, I'll show how to load your own data into a Dojo table. Remember, with Ajax, you are doing more transactions, so you want each one to be as small as possible. For your application, evaluate all the online mapping-service APIs and choose the one that best suits you. I created a script called index. That will be provided in the next version. Resources may include URLs, databases, web services, or domain objects which that service may access to complete a request. Remember, with Ajax, you are doing more transactions, so you want each one to be as small as possible. In this class, I added a method to create some rows of data. It turns out that there wasn't much to it. I created my application's directory structure according to the Phobos project's conventions. To do this, you look at the widget. If you were registered and logged in, you could join this project. See the tutorial for more information on building Phobos applications. Subsequently, the portal can personalize that data so that its users can have their own mashups with data sources that suit their individual needs, hence saving a major task in the development cycle. Learn about projects? That will be provided in the next version. We'll then post a selected set of questions and answers. The Back buttons on browsers can present a problem with Ajax-based Web applications. Check back soon for upcoming sessions. blueprints Project home Notice: the Project Editor feature for Subversion projects has been disabled for maintenance. OK, but what if you want to get the data from a bean using an EL expression, as you can with most other JSP tags? You can also refer to my example, called bioFisheyeWidget, located in the apps directory of your Phobos installation. Each of those JavaScript arrays includes the displayed label and the actual value of an item in the combobox. It doesn't detail getting the data from a database. Let's look at restricting service access in more detail and how it is handled by the XmlHttpProxy for Java. For simplicity, because Yahoo Maps offers an easy API for GeoRSS feeds, you will use that API for this sample portlet. Allowing JavaScript to directly configure parameters such as the URL accessed by the proxy or a query to a database could open yourself up to unauthorized access. A token or key is mapped to a set of parameters which include the service URLs, service API keys, XSL style sheets, and default values used by the XmlHttpProxy. He also created a demo that uses the service with a Yahoo map widget. I wanted each section in the accordion to resize to the section's content. Application Key based Restriction Yahoo commonly uses application level keys to give access to their vast set of services. URL Based Restriction - Based on the URL in which the JavaScript is executed you can restrict access to a service. json file for the table widget. When this happens, the fruit component goes through the execute phase of the life cycle, and the value-change event that is registered on it is fired. For the Ajax-enabled map, use Google Maps, Yahoo Maps, or MapQuest. Adding Ajax capability to a Phobos application is quite easy and the JavaScript to implement it is nearly the same as it is in any other web application. OK, but what if you want to get the data from a bean using an EL expression, as you can with most other JSP tags? Java EE provides role based security which you can use to restrict the server side resources such as EJB components, JDBC connections, or web services that your service may expose. I wanted each section in the accordion to resize to the section's content. The Yahoo Geocoder does not provide an option for JSON output. This technique forces JavaScript clients to use a proxy like the XmlHttpProxy to access your service. In Ajax applications, you often have to refer to client IDs. For this example, you do not need to write any JavaScript code to use Ajax, nor do you need to do anything special in your Java code. Quality dessert pear . xml Building the Sample To build the sample: Open MashupMapPortlet as a Web application project in the NetBeans IDE. The service provider can still track the usage and limit access if the application key is misused. Remember, with Ajax, you are doing more transactions, so you want each one to be as small as possible. I created my application's directory structure according to the Phobos project's conventions. |