1 / 29

Blood on the Keyboard

Blood on the Keyboard. Experiences in developing Rich Internet Applications. Brendan Lawlor, DSI. Decare Systems Ireland. Based in Bishopstown, Cork. 150+ 140+ actually writing code for a living Java and .NET Enterprise Intranet Applications E-commerce Internet Applications. Themes.

nat
Download Presentation

Blood on the Keyboard

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Blood on the Keyboard Experiences in developing Rich Internet Applications. Brendan Lawlor, DSI.

  2. Decare Systems Ireland • Based in Bishopstown, Cork. • 150+ • 140+ actually writing code for a living • Java and .NET • Enterprise Intranet Applications • E-commerce Internet Applications

  3. Themes • Rich Internet Application development • Creative Development, XHTML, CSS, Javascript. • AJAX – a small but vital part of RIA development. • DSI’s experience in building RIAs.

  4. RIA Philosophy: Before Javascript Sucks

  5. RIA Philosophy: After Javascript Still Sucks -but DOJO makes it a lot less sucky

  6. Why DOJO? We needed a safer way to use Javascript. JSF ?

  7. JSF The RIA Platform GWT DOJO CSS XHTML JS Browser

  8. What is DOJO? • It is a set of JavaScript libraries • Handles browser incompatibilities • Hides XMLHttpRequest processing • Provides for the building of Widgets • AOP in JavaScript!

  9. DOJO packages • dojo.widget • dojo.event • dojo.io dojo.require(“dojo.widget.*”);

  10. DOJO Libraries: dojo.widget <select class=“cb”> <option value=“Java">java</option> <option value=“Script">script</option> <option value=“Still">still</option> <option value=“Sucks">sucks</option> </select>

  11. ComboBox.html <select class=“cb” dojoType=“ComboBox”> <option value=“Java">java</option> <option value=“Script">script</option> <option value=“Still">still</option> <option value=“Sucks">sucks</option> </select>

  12. ComboBox.css .cb{ position: relative; top: 0px; }

  13. ComboBox.js dojo.provide(“ComboBox"); … dojo.widget.defineWidget( “ComboBox”, templatePath:/ComboBox.html templateCssPath:/ComboBox.css … //Event-Driven Behaviour

  14. Creating the Widget <div dojoType=“ComboBox">

  15. DOJO packages • dojo.widget • dojo.event • dojo.io

  16. DOJO Libraries: dojo.event • RIA = component-based, event-driven • JS Events = cross-browser hell • DOJO = cross-browser event management • Also abstracts over all events.

  17. DOJO packages • dojo.widget • dojo.event • dojo.io

  18. DOJO Libraries: dojo.io • Abstracts the XMLHttpRequest • Everything is a ‘bind’ dojo.io.bind({ url: "http://foo.bar.com/read", load: function(type, data, evt){ /*read something*/}, mimetype: "text/json“ formNode: dojo.byId(“myForm”) });

  19. How we use DOJO

  20. Natural Habitats We have a dedicated creative team: • No advantage of Java over Javascript. • They could work on both server platforms using DOJO alone. • Unity of platform gives unity of standards.

  21. DOJO and Presentation Process. Pictures Wireframes WF & data

  22. JS Controller read.json Read read.json Edit Controller edit.json .html Search Struts Actions Our DOJO Architecture

  23. Summary • What we liked • What we hated • What we’re gonna do about it • What we wish somebody else would do

  24. What did we like? • Easy access for our creative staff • Very little change from Struts actions downwards • JS widgets are more easily reusable • Client development without the server!

  25. read.json read.json read.json C:\test .html Look Ma – No Server!

  26. What did we dislike? • Widgets on Internet Explorer 6 • DOJO 0.3 and IE6: a match made in Hell • Irresistible force meets immovable object

  27. What Next? • DOJO 0.9 just released • Hopefully will deal with IE6 problem

  28. Final thoughts • Just another view on how to write RIAs. • Not an attempt to say that DOJO is better. • Whatever framework we use, we need to live with JS. • Would somebody write a JS GUI builder already!?

  29. Resources and Credits • DSI: Paul Sheehan, Michal Bali, Conor Goulding • Sun: Sang Shin (Introduction to Dojo Toolkit) • http://dojotoolkit.org • http://blog.decaresystems.ie

More Related