Hi Erik,

I dont know about inputSuggestAjax but recently I found

http://wiki.apache.org/myfaces/CompatibilityMatrix

Maybe the libraries dont work together?

Regards
René


On Tue, 08 May 2007 13:56:09 +0000
 "Erik Govaers" <[EMAIL PROTECTED]> wrote:
Hello,

I’m trying my hand at a very simple <s:inputSuggestAjax> example based on the example at http://www.irian.at/myfaces-sandbox/inputSuggestAjax.jsf. I get an input field, but when I start typing I get no suggestions since my backing bean ‘suggestedItems’ method is never called. I’m using server-side saving, but switching to client-side makes no difference. I’ve looked at a lot of the inputSuggestAjax related issues in the mailing lists, but found no solution yet. My guess is that is has either something to do with the fact that I'm using MyFaces 1.1.3 or with the fact that the Shale/Clay ValidatorInputRenderer is overwriting the InputSuggestAjax Renderer (something I noticed just now).


Here’s my jsp
=============

<%@ page session="false" contentType="text/html;charset=utf-8"%> <%@ 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>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8" />
        <title>InputSuggestAjax Test</title>
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/css/basic.css" />
</head>
<body>
<f:view>
<h:form>


<h:panelGrid columns="2">
<h:outputText value="Select" style="padding-right:3em;"/> <s:inputSuggestAjax id="inputSuggestAjaxTest" charset="utf-8" required="true" value="#{newRegistrationPage.code}" style="width:250px;" suggestedItemsMethod="#{newRegistrationPage.suggestedItems}"/>
</h:panelGrid>


</h:form>
</f:view>
</body>
</html>


Method signature
================

public List suggestedItems(String keyword);


Libraries
=========

myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
tomahawk-1.1.5.jar
tomahawk-sandbox-1.1.5-SNAPSHOT.jar





Reply via email to