Subject: 5 NetBeans Visual Web Pack 5.

From: "Bridges" <[email-masked]>
Date: Sun, 22 Apr 2007 15:23:32 +0200

This article focuses on page authors and describes various techniques that you can use to add Ajax functionality to a web page. To use the component in a web page, you open the page in Sun Java Studio Creator's Visual Designer.
The Visual Web Pack is ideal for people who use the NetBeans IDE to develop and consume web services and enterprise beans in web applications. The value attribute holds the current value of the city or state, which is bound to another managed bean, SessionBean.
For example, Figure 8 shows what happens when you drag and drop the combobox widget from the jMaki palette in the NetBeans IDE to the source file of a web page. Page authors use these Ajax components, along with widgets, JavaScript technology, and other techniques, to incorporate Ajax functionality into their web applications.
Make a request to the server through the XMLHttpRequest or XMLHTTP object.
The framework provides a library of wrapped widgets from various JavaScript libraries such as the Dojo toolkit and script.
The JavaScript code is designed to interact with a servlet on the server to handle autocompletion.
If an Ajax-enabled component is available in an IDE, you can drag and drop the component from the IDE's palette onto the page.
The status property specifies a status code returned from the server.
The parseMessages() function uses JavaScript functions such as getElementsByTagName() to access and manipulate elements in the DOM representation of the page.
In fact, the UI components in the JavaServer Faces component libraries are widgets, and they include widgets that are enabled for Ajax. A managed bean is a JavaBeans technology component that is managed by the JavaServer Faces framework.
For example, a library of Ajax-enabled components is available as part of the Java Blueprints Solutions Catalog. That's because Ajax is currently the primary technique for driving the high responsiveness and interactivity of some of the most popular applications on the web such as Google Maps and Flickr.
Also see the blog entry  "jMaki supports PHP! The parameter true indicates that the communication will be asynchronous.
The example is taken from the demonstration of the combobox widget on the Dojo toolkit site. The data is returned in the XMLHttpRequest or XMLHTTP object and is typically in the form of an XML document.
For example, enterprise application developers need to add logic in server-side components to handle Ajax-related requests directed to the server.
In still other approaches, you do most or all of the JavaScript coding. open("GET", url, true); req. Another way to add Ajax functionality to a web page is to use widgets that are enabled for Ajax. A managed bean is a JavaBeans technology component that is managed by the JavaServer Faces framework.