Service Side Ajax Richard Schmidt gmail. Com Metservice.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

Behzad Samin 0 An End-to-End Overview of a RESTful Web Service.
ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
Fawaz Ghali AJAX: Web Programming's Toy.
Java Graphical User Interface (GUI) using Visual Editor in eclipse CSI 1390 – Java Programming Instructor: Saeid Nourian University.
1 CGICGI Common Gateway Interface Server-side Programming Lecture.
Developing HTML5 Application using MVVM pattern Pekka Ylenius.
Web Server Programming
1 GWT Google Web Toolkit Build AJAX apps in the Java language
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Google Web Toolkit - Gufran Mohammed. Google Web Toolkit (GWT) is an open source Java software development framework that makes writing AJAX applications.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Internet Technologies 1 Master of Information System Management Java Server Faces Model/View/Controller Design Pattern for Web Development Slides.
ACTIVE X By Ethan Huang. OUTLINE What is ActiveX? Component of ActiveX Why ActiveX? ActiveX and Java Security Issue.
Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Inline, Internal, and External FIle
Introduction to AppInventor Dr. José M. Reyes Álamo.
Java Swing Joon Ho Cho. What is Java Swing? Part of the Java Foundation Classes (JFC) Provides a rich set of GUI components Used to create a Java program.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
Client/Server Architectures
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
RIA Introduce Comparison among several technology.
Pittsburgh Java User Group– Dec Java PureFaces: A JSF Framework Extension.
JavaScript & jQuery the missing manual Chapter 11
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
Rich Internet Applications An alternative in web application development with Java - Vikas Bhatia.
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
Component-Based Software Engineering Internet Applications Paul Krause.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Echo2 Java AJAX Web Framework Petar Milev. Contents 1.Introduction to Echo2 2.Echo2 Target – Business Web 3.Why Choosing Echo2? 4.Live Demo 5.How It Works?
Java Mobile Apps with GWT & PhoneGap Josh Marinacci, webOS Developer Advocate.
Open Web App. Purpose To explain Open Web Apps To explain Open Web Apps To demonstrate some opportunities for a small business with this technology To.
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Writing various AJAX forms in Drupal 7 1. Overview of Form API 2. Ctools 2.1 Ctools features 3. Ajax 3.1 Ajax Forms in Drupal 4. Putting it all together.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
Flex 2.0 Flex for ColdFusion developers Part 1. What is Flex Flex allows developers to create Flash content for Rich Internet Applications in a more programmer.
Google Web Toolkit An Overview By Shauvik Roy Choudhary.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
CSCI 6962: Server-side Design and Programming AJAX Tools in JSF and ASP.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Grid Operations Center Infrastructure Team Soichi Hayashi, Arvind Gopu.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
Java Applets: GUI Components, Events, Etc. Ralph Westfall June, 2010.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Ajax and the GWT. Ajax  Asynchronous JavaScript And XML  Technology behind interactive web sites  Provide smoother experience than conventional web.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
JavaScript & Introduction to AJAX
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
 AJAX technology  Rich User Experience  Characteristics  Real live examples  JavaScript and AJAX  Web application workflow model – synchronous vs.
Ajax! Ajax Programming Ajax! Ajax Programming. Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Lesson 2: First Java Programs. 2.1 Why Java? Java is one of the most popular programming languages in the world. Java is a modern object-oriented programming.
Technologies For Creating Rich Internet Applications Presenter's name
Visual Web & AJAX with Netbeans 6.0 Your Name Sun Campus Ambassador Your Address.
Google Web Toolkit Tutorial
Google Web Toolkit - Gufran Mohammed
Apache Wicket Component Based Web Development Framework.
AJAX.
Asynchronous Java script And XML Technology
AJAX.
Ellen Walker Hiram College
Gannon University Frank Xu
Java Web Application Framework
Introduction to AppInventor
Constructors, GUI’s(Using Swing) and ActionListner
Presentation transcript:

Service Side Ajax Richard Schmidt gmail. Com Metservice

Our Situation / Requirement Rich(ish) Application. Easy to deploy / standard browser. Not many users.  Max 50 sessions  Very little concurrency Hardware costs are not important. Main cost is developer salaries.

Some Web Frameworks JSF (yea right!)‏  Ajax? Tapestry, Wicket  Component based. Flex  Another language GWT  Scaled down Java Java client (applet / web start)‏  Will the client have JAVA installed? Something else?

Server Side Ajax Server downloads a javascript app. to browser. Server then sends list of components that javascript app. renders in the browser. User events are sent back to server using Ajax. Server processes events and then send changes to components back to client...

Advantages Only one language Can use full features of Java  not like GWT No writing of HTML or Javascript! Write using components that fire events.  Swing like. KISS: One less physical layer All code runs on one VM, easier to debug, test etc.

Disadvantages Each user has a large session variable.  Not going to work for Google! More network traffic to / from server.  (but not much more!)‏ Not mainstream technology. 'Stuck' with the basic components supplied by the framework. Set of components – still have to write a application framework! Different browsers.

Players Thinwire  Stable, not much development. Echo2/3  Well known. Wing-S  Based on Swing components. J-Seamless  Uses Flex as a renderer. ULC Canoo  Commercial, Java proxy on client  Test framework, visual editor, support, rich functionality.

public static void main(String[] args) { //Create and set initial position for components final Dialog dialog = new Dialog("Hello World, ThinWire Style!"); Label label = new Label("Hello, what is your name?"); final TextField input = new TextField(); Button button = new Button("Ok"); //When button is clicked, close modal dialog and say hello button.addActionListener("click", new ActionListener() { public void actionPerformed(ActionEvent ev) { MessageBox.confirm("Hello " + input.getText() + "!"); dialog.setVisible(false); } }); //Add components to dialog dialog.getChildren().add(label); dialog.getChildren().add(input); dialog.getChildren().add(button); //Show dialog and wait for "OK" press dialog.setVisible(true); } Code Example

Using Beans Binding ATestBean bean = new ATestBean(); Property pt1Client = BeanProperty.create("enabled"); TextField tf = new TextField(); Property tfProp = BeanProperty.create("enabled"); Binding binding = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, bean, pt1Client, tf, tfProp); binding.bind();

Demos Echo2 Wing-S Canoo ULC Our App