+
+
+
+ #{msgs.locationsPrompt}
+
+
+
+
+
+
diff --git a/Semester 2/Assignments/Core JavaServer Faces source code /Core JavaServer Faces source code /corejsf3-examples/javaee/ch10/autoComplete/web/resources/javascript/autoComplete.js b/Semester 2/Assignments/Core JavaServer Faces source code /Core JavaServer Faces source code /corejsf3-examples/javaee/ch10/autoComplete/web/resources/javascript/autoComplete.js
new file mode 100644
index 0000000..78ebc46
--- /dev/null
+++ b/Semester 2/Assignments/Core JavaServer Faces source code /Core JavaServer Faces source code /corejsf3-examples/javaee/ch10/autoComplete/web/resources/javascript/autoComplete.js
@@ -0,0 +1,40 @@
+if (!com) var com = {}
+if (!com.corejsf) {
+ var focusLostTimeout
+ com.corejsf = {
+ errorHandler: function(data) {
+ alert("Error occurred during Ajax call: " + data.description)
+ },
+
+ updateCompletionItems: function(input, event) {
+ var keystrokeTimeout
+
+ jsf.ajax.addOnError(com.corejsf.errorHandler)
+
+ var ajaxRequest = function() {
+ jsf.ajax.request(input, event, {
+ render: com.corejsf.getListboxId(input),
+ x: Element.cumulativeOffset(input)[0],
+ y: Element.cumulativeOffset(input)[1] + Element.getHeight(input)
+ })
+ }
+
+ window.clearTimeout(keystrokeTimeout)
+ keystrokeTimeout = window.setTimeout(ajaxRequest, 350)
+ },
+
+ inputLostFocus: function(input) {
+ var hideListbox = function() {
+ Element.hide(com.corejsf.getListboxId(input))
+ }
+
+ focusLostTimeout = window.setTimeout(hideListbox, 200)
+ },
+
+ getListboxId: function(input) {
+ var clientId = new String(input.name)
+ var lastIndex = clientId.lastIndexOf(":")
+ return clientId.substring(0, lastIndex) + ":listbox"
+ }
+ }
+}
diff --git a/Semester 2/Assignments/Core JavaServer Faces source code /Core JavaServer Faces source code /corejsf3-examples/javaee/ch10/autoComplete/web/resources/javascript/prototype-1.6.0.2.js b/Semester 2/Assignments/Core JavaServer Faces source code /Core JavaServer Faces source code /corejsf3-examples/javaee/ch10/autoComplete/web/resources/javascript/prototype-1.6.0.2.js
new file mode 100644
index 0000000..6385503
--- /dev/null
+++ b/Semester 2/Assignments/Core JavaServer Faces source code /Core JavaServer Faces source code /corejsf3-examples/javaee/ch10/autoComplete/web/resources/javascript/prototype-1.6.0.2.js
@@ -0,0 +1,4221 @@
+/* Prototype JavaScript framework, version 1.6.0.2
+ * (c) 2005-2008 Sam Stephenson
+ *
+ * Prototype is freely distributable under the terms of an MIT-style license.
+ * For details, see the Prototype web site: http://www.prototypejs.org/
+ *
+ *--------------------------------------------------------------------------*/
+
+var Prototype = {
+ Version: '1.6.0.2',
+
+ Browser: {
+ IE: !!(window.attachEvent && !window.opera),
+ Opera: !!window.opera,
+ WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
+ Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') == -1,
+ MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
+ },
+
+ BrowserFeatures: {
+ XPath: !!document.evaluate,
+ ElementExtensions: !!window.HTMLElement,
+ SpecificElementExtensions:
+ document.createElement('div').__proto__ &&
+ document.createElement('div').__proto__ !==
+ document.createElement('form').__proto__
+ },
+
+ ScriptFragment: '