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
AjaxAnywhere
Presented by Angel Ruiz Canberra “J” Users group
13 March 2013
Why fork it?
Why fork it?
How does it work?
How does it work?
How does it work?
Web Client
Web Server
HttpServletRequest
Controller/Servlet
HttpServletResponse
HTML
HTTP Request HTTP Response Content-Type=text/html
Handle
Render
Stream
How does it work?
How does it work?
How does it work?
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
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
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
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
Main aims?
Main aims?
Main aims?
Main aims?
Main aims?
Main aims?
Main aims?
How does it do it?
1 – Mark your form, input elements or links
How does it do it?
1 – Mark your form, input elements or links
2 – Mark the zones to be refreshed
Installation 1 – Add dependency with AjaxAnywhere library
<dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency>
Installation 1 – Add dependency with AjaxAnywhere library
<dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency>
2 – Declare Filter
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>
EXAMPLES
www.AjaxAnywhere.com
Some conclusions
Some conclusions
Does not require you to modify your controller
Some conclusions
Does not require you to modify your controller
Some conclusions
Does not require you to modify your controller
Some conclusions
Does not require you to modify your controller
Some conclusions
Does not require you to modify your controller
Dependencies
Remaining Tasks
TO DO WIP DONE
Create Doco
Thank you for listening!!!
AjaxAnywhere
“Now in a Maven repository near you”
@aruizca @nerdErg