the code in the jsp and the bean is same to the demo
but why the list can't show???
code in the jsp:
<f:view>
<p:resources />
<p:autoComplete value="#{treeBean.text}" completeMethod="#{treeBean.complete}">
</p:autoComplete>
</f:view>
code in the bean :
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public List<String> complete(String query) {
List<String> results = new ArrayList<String>();
for (int i = 0; i < 10; i++)
results.add(query + i);
return results;
}
why the AutoComplete can't work
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Weird, it should work with your configuration. The difference is online demo uses facelets, I'll look into this, our jsp based example application has an autocomplete working.
Can you see the ajax request-responses with firebug and compare them with the online demo?
Can you see the ajax request-responses with firebug and compare them with the online demo?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 30 guests