sanju baba

Greenhorn
+ Follow
since Jul 31, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sanju baba

Hi Pradeep,

I am not able to use the code snippet that you have shared above. Both cases are not working. I am copying my JSP content here:-
<%@ page language="java" contentType="text/html;charset=UTF-8"%>

<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<link type="text/css" rel="stylesheet" media="projection, screen, print" href="js/jquery-ui-1.8.17.custom.css" />

<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.ui.autocomplete.js"></script>

<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "tags" ).autocomplete({
source: availableTags
});
$( "#html" ).autocomplete({
source: availableTags
});
});
</script>

<f:view>
<label for="tags">JSF Autocomplete: </label>
<h:inputText id="tags" />

<label for="tags">HTML Autocomplete: </label>
<input type="text" id="html">

</f:view>


Please note that it is working fine with HTML text box with id HTML and not working with JSF input box with id tags. Looking for your further input as it is a bit urgent.

Thanks,
Sanjeev
12 years ago
JSF