Welcome!

Anil Sharma

Subscribe to Anil Sharma: eMailAlertsEmail Alerts
Get Anil Sharma via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Latest Articles from Anil Sharma
In the previous section we discussed a set of abstractions that are sub-classes of the component. A component class abstracts some behavior and to implement that, it might add a set of event listeners to its elements. Those event handlers are encapsulated in the component class and ser...
AJAX is the right technology for a Web-enabled rich user interface (UI). But as with any technology, unstructured software created using it is a recipe for failure. AJAX is a set of powerful and flexible technologies but its disorderly use can result in spaghetti code. If the code isn'...
In the MainPage-9.html, we add a new link called 'Save' in the top toolbar. It's used to save the changes made by the user using an AJAX request.
Note in the 'setData' method of the SimpleTable, the following code. The code to add 'cellClicked' as an 'onclick' listener to each cell. The ID attribute of each attribute is set so that we can parse it to retrieve the row and column of the cell.
In the previous sections, we've discussed the HTML template and a component class called 'NavBar.' Next we'll discuss more templates and the component classes that are bound to the application data. But before that, we'll discuss how the data is converted to the internal form. The XML ...
Refer to TopNavBar.html. This is a pure HTML document. It's created to act as a template for the navigation bar. Note the 'id' assigned to each anchor element. The screenshot of the navigation bar template is shown below.
Let's look at the source code organization in our sample application. It's important from two perspectives: a) it would be useful in browsing the sample code described in the following sections; and b) the directory structure helps visualize the structure of the pages. We use the direc...
JSP, JSF, special tags, configuration files, and tld files are all replaced by client-side HTML templates, components, and controllers. We only need a controller servlet on the server side.
When the user makes changes to the data, all the changes can be recorded locally up to some point or sent to the server immediately. It depends on the application situation. In a typical application, there are certain changes that are buffered until the user selects an operation to ind...
The controller servlet orchestrates interaction between the client- and server-side components that serve as the real data sources or service providers. The client uses XML messages to send details of server invocations. The controller servlet interprets the XML messages and delegates ...