37
AjaxAnywhere Presented by Angel Ruiz Canberra “J” Users group 13 March 2013

AjaxAnywhere (Reloaded) library

  • View
    2.494

  • Download
    0

Embed Size (px)

DESCRIPTION

AjaxAnywhere is an Open Source Java Ajax framework that enables the developer to add Ajax behavior to your web application without any Javascript coding.

Citation preview

Page 1: AjaxAnywhere (Reloaded) library

AjaxAnywhere

Presented by Angel Ruiz Canberra “J” Users group

13 March 2013

Page 2: AjaxAnywhere (Reloaded) library
Page 3: AjaxAnywhere (Reloaded) library
Page 4: AjaxAnywhere (Reloaded) library

Why fork it?

Page 5: AjaxAnywhere (Reloaded) library

Why fork it?

Page 6: AjaxAnywhere (Reloaded) library

How does it work?

Page 7: AjaxAnywhere (Reloaded) library

How does it work?

Page 8: AjaxAnywhere (Reloaded) library

How does it work?

Web Client

Web Server

HttpServletRequest

Controller/Servlet

HttpServletResponse

HTML

HTTP Request HTTP Response Content-Type=text/html

Handle

Render

Stream

Page 9: AjaxAnywhere (Reloaded) library

How does it work?

Page 10: AjaxAnywhere (Reloaded) library

How does it work?

Page 11: AjaxAnywhere (Reloaded) library

How does it work?

Page 12: AjaxAnywhere (Reloaded) library

How does it work? Web Client

Web Server

Controller/Servlet

HttpServletResponseWrapper

HTML

HTTP Request HTTP Response

Content-Type=text/xml

Handle

Render

Stream

HttpServletRequest

HttpServletRequest

HttpServletReponse

XML

Stream

Continue with Response Wrapper

Intercept

AjaxAnywhere Servlet Filter

Page 13: AjaxAnywhere (Reloaded) library

How does it work? Web Client

Web Server

Controller/Servlet

HttpServletResponseWrapper

HTML

HTTP Request HTTP Response

Content-Type=text/xml

Handle

Render

Stream

HttpServletRequest

HttpServletRequest

HttpServletReponse

XML

Stream

Continue with Response Wrapper

Intercept

AjaxAnywhere Servlet Filter

Page 14: AjaxAnywhere (Reloaded) library

How does it work? Web Client

Web Server

Controller/Servlet

HttpServletResponseWrapper

HTML

HTTP Request HTTP Response

Content-Type=text/xml

Handle

Render

Stream

HttpServletRequest

HttpServletRequest

HttpServletReponse

XML

Stream

Continue with Response Wrapper

Intercept

AjaxAnywhere Servlet Filter

Page 15: AjaxAnywhere (Reloaded) library

How does it work? Web Client

Web Server

Controller/Servlet

HttpServletResponseWrapper

HTML

HTTP Request HTTP Response

Content-Type=text/xml

Handle

Render

Stream

HttpServletRequest

HttpServletRequest

HttpServletReponse

XML

Stream

Continue with Response Wrapper

Intercept

AjaxAnywhere Servlet Filter

Page 16: AjaxAnywhere (Reloaded) library

Main aims?

Page 17: AjaxAnywhere (Reloaded) library

Main aims?

Page 18: AjaxAnywhere (Reloaded) library

Main aims?

Page 19: AjaxAnywhere (Reloaded) library

Main aims?

Page 20: AjaxAnywhere (Reloaded) library

Main aims?

Page 21: AjaxAnywhere (Reloaded) library

Main aims?

Page 22: AjaxAnywhere (Reloaded) library

Main aims?

Page 23: AjaxAnywhere (Reloaded) library

How does it do it?

1 – Mark your form, input elements or links

Page 24: AjaxAnywhere (Reloaded) library

How does it do it?

1 – Mark your form, input elements or links

2 – Mark the zones to be refreshed

Page 25: AjaxAnywhere (Reloaded) library

Installation 1 – Add dependency with AjaxAnywhere library

<dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency>

Page 26: AjaxAnywhere (Reloaded) library

Installation 1 – Add dependency with AjaxAnywhere library

<dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency>

2 – Declare Filter

Page 27: AjaxAnywhere (Reloaded) library

Installation 1 – Add dependency with AjaxAnywhere library

<dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency>

2 – Declare Filter

3 – Import Javascript libraries

<script src="<c:url value="/js/jquery/jquery-1.9.1.min.js"/>"></script> <script src="<c:url value="/js/jquery-aa.js"/>"></script>

Page 29: AjaxAnywhere (Reloaded) library

Some conclusions

Page 30: AjaxAnywhere (Reloaded) library

Some conclusions

Does not require you to modify your controller

Page 31: AjaxAnywhere (Reloaded) library

Some conclusions

Does not require you to modify your controller

Page 32: AjaxAnywhere (Reloaded) library

Some conclusions

Does not require you to modify your controller

Page 33: AjaxAnywhere (Reloaded) library

Some conclusions

Does not require you to modify your controller

Page 34: AjaxAnywhere (Reloaded) library

Some conclusions

Does not require you to modify your controller

Page 35: AjaxAnywhere (Reloaded) library

Dependencies

Page 36: AjaxAnywhere (Reloaded) library

Remaining Tasks

TO DO WIP DONE

Create Doco

Page 37: AjaxAnywhere (Reloaded) library

Thank you for listening!!!

AjaxAnywhere

“Now in a Maven repository near you”

@aruizca @nerdErg