
AJAX
TerraFrame MOJO has AJAX tools built in to make quick work of building browser-based RIA front ends. MOJO provides the browser with the same convenient API that the presentation server uses.
In MOJO, Javascript DTOs are generated for all classes and façades. When a method is invoked on a DTO, the object is sent down the stack and back to the browser automatically. MOJO first marshals the object as JSON and sends it to the server. The DTO is then unmarshalled as a Java object and the method is instantiated. The results are marshalled again as JSON and sent to the browser where they are unmarshalled and the result is displayed.
Since TerraFrame MOJO’s API is data centric, the returned objects can be displayed in any way the developer choses. This method provides complete control over all aspects of the javascript interface.