Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
8Activity
0 of .
Results for:
No results containing your search query
P. 1
DWR Autosuggetion

DWR Autosuggetion

Ratings: (0)|Views: 29 |Likes:
Published by Sunil Soni
The browser side JavaScript objects are implemented by the DWR JavaScript code. This code communicates with the servlet at the backend using asynchronous XMLHttpRequest support of the browser
The browser side JavaScript objects are implemented by the DWR JavaScript code. This code communicates with the servlet at the backend using asynchronous XMLHttpRequest support of the browser

More info:

Categories:Types, Reviews, Book
Published by: Sunil Soni on Oct 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

10/24/2012

pdf

text

original

 
 DWR AutosuggetionPage 1
 
DWR (Direct Web Remoting)Autosuggetion
 
DocumentVersionModification CommentsModifiedByReviewedByDate Comments
Draft 1.0 Created the documentSunil Soni- 26-09-2011
Contents
-
 
 DWR AutosuggetionPage 3
 
1.
 
Introduction
The browser side JavaScript objects are implemented by the DWR JavaScript code. This codecommunicates with the servlet at the backend using asynchronous XMLHttpRequest support of the browser.Operations performed by DWR during remoting include:
 
DWR runtime processes a dwr.xml file to determine the objects that needs to be remoted
 
DWR uses Java reflection to find out about the available fields and methods of theserver-side object
 
DWR generates JavaScript code that creates equivalent JavaScript objects within thebrowser
 
All methods in the JavaScript object are invoked remotely and handled by the DWRservlet
 
Methods that return values are handled by converter within DWR.
 
DWR consists of two main parts:
 
 
A Java Servlet running on the server that processes requests and sends responses back tothe browser.
 
JavaScript running in the browser that sends requests and can dynamically update thewebpage.which consists of:1.
 
A servlet (
uk.ltd.getahead.dwr.DWRServlet
)2.
 
A set of JavaScript libraries (util.js and engine.js)
2.
 
JavaScript files that must be included in your application for DWR:
2.1.
 
JCustomer.js:
complete path is
/<App NAME>/dwr/interface/<YOUR CLASS NAME>.js
“.
 
in my application the path is “/fas.war/dwr/interface/
 
JCustomer.js”
and one more javascript file
“/fas.war/dwr/interface/
 
searchDwr.js”
 
searchDwr.js
var nameRegEx = /^([a-zA-Z\-\/&_]){1,50}$/;function
 populateSearchFied 
(obj){

Activity (8)

You've already reviewed this. Edit your review.
1 hundred reads
Sunil Soni liked this
ALi liked this
Sunil Soni liked this
Sunil Soni liked this
Sunil Soni liked this
Sunil Soni liked this
Sunil Soni liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->