I have just tested the InputSuggestAjax, but it doesn't seem to work, like i want:
Here is my code-snippet:
JSP Site:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
<html>
<f:view>
<head>
<title>text</title>
</head>
<body>
<h:form>
<table class="haupttabelle" cellspacing="0">
<tr>
<td>
<s:inputSuggestAjax suggestedItemsMethod="#{queryHelper.getItems}"/>
</td>
</tr>
</table>
</h:form>
</body>
</f:view>
</html>
Backing Bean:
public List getItems(String prefix)
{
List li = new ArrayList();
li.add(prefix + 1);
li.add(prefix + 2);
li.add(prefix + 3);
li.add(prefix + 4);
li.add(prefix + 5);
li.add(prefix + 6);
return li;
}
I have copied the code from the example, but when I enter something in the textbox, nothing happens...
Please can anybody describe me, how this inputsuggestAjax tag works?
I want to read the Data for the InputSuggestAjax Tag from a Database. Do I only have to iterate through the result and add it to an arraylist? Can I also use a Map for InputSuggestAjax?
Perhaps are there some tutorials?
Thx for help!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

