JAXB – Perform Pre- and Post-processing with Unmarshaller.Listener

This post demonstrates how to perform pre- and post-processing with Unmarshaller.Listener. For instance you may want to compare the contents of an object before and after you unmarshal an XML. Another use-case is when you may need to store unmarshalled values to some list not mapped to any XML element. This is achieved by creating a class that extends Unmarshaller.Listener and overriding two (2) methods – beforeUnmarshal and afterUnmarshal. Continue Reading


AngularJS Routing with ngRoute

With AngularJS, you write Single Page Applications (SPAs) that uses only a single main page (e.g., index.html) to render its User Interface (UI) component. How the UI visually response to users happens within that single page. Each section of the page may display different content. SPAs generally do not redirect to another main page.

Routing is a way to change the content of one or more sections of the page. One way to do implement it is using ngRoute Continue Reading


Your First Proper AngularJS Application

This post demonstrates how to create a proper and typical AngularJS application with controllers. In my previous post Your First AngularJS Application, I didn’t touch on the basics to create a very simple and typical AngularJS application. However, the example allows us to bootstrap the AngularJS application (single-page) and demonstrates the two-way binding feature wherein the characters are displayed as you type them in the textbox. Continue Reading