In English

Refactoring of a GUI prototype using AJAX - Improve the performance of a GUI prototype by introducing an AJAX framework.

Emanuella Wallin
Göteborg : Chalmers tekniska högskola, 2009. 38 s.
[Examensarbete på avancerad nivå]

The problem given from the company XDIN was to improve an existing Java EE web application prototype which handles errands specified for the energy branch. Since the prototype had a slow work process and a slow response time, the company wants the new system to be implemented with AJAX and DWR. Furthermore, the task was also to examine if it is beneficial to use other AJAX frameworks, in excess of DWR. Since there are many different frameworks the review was limited to include two of the frameworks that are in the frontline, DOJO and YUI. A lot of different technologies were used, such as JSP, JS, HTML, AJAX, DOJO, YUI, EJB, Struts, SQL and CSS (Cascading Style Sheet). Therefore the first step was to learn all the different technologies by reading tutorials and API’s and attending workshops. The second step was to understand the requirements of the system. Development of the code was done using both Eclipse and IntelliJ, and for testing the UI, a tool called firebug was used. DWR is a framework that advocates asynchronous communication and makes it possible to do lightweight server roundtrips without any complete page refresh. By the very nature of the framework, the response times were improved. All three JavaScript libraries have pros and cons. DOJO has a lot of features and gives the impact of being a library to trust because of its diversity. However, since there is no documentation or complete API it makes it really difficult and cumbersome to use. The key feature with a JavaScript library should be ease of use, and by that also a time saver to develop with when compared to other frameworks or no framework at all. DOJO lacks in these areas, and is not the framework of choice largely because of these. The YUI on the other hand not only has a lot of features, but comes with a comprehensive API complemented with examples and cheat sheets. As a result of the drawbacks of DOJO the choice was to use YUI as a primary JavaScript Library and to use YUI ext as an extension

Nyckelord: AJAX, DWR, YUI, DOJO, YUI ext, RIA



Publikationen registrerades 2010-03-04. Den ändrades senast 2013-04-04

CPL ID: 117180

Detta är en tjänst från Chalmers bibliotek