Yes, you are right. I have also recognized this issue yesterday.
It´s freaky that no one has detected this since today :)
I will fix this as soon as i can.
regards,
Gerald
On 3/22/06, Wiell, Daniel (FONL) <[EMAIL PROTECTED]> wrote:
> I'm having some trouble getting the InputSuggestAjax component to work
> properly. I know this is work in progress, but anyway, I figure this should
> be one of the most basic use cases for it. In fact, it's so basic that I
> hesitate to ask - it's probably me doing something stupid at the end ;-).
>
> I modified InputSuggestAjaxBean from the example webapp, adding the
> following:
>
> private String item = "Default item";
> public String getItem() { return item; }
> public void setItem(String item) { this.item = item; }
>
> I also created inputSuggestAjax2.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/tomahawk" prefix="t"%>
> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
> <html>
> <[EMAIL PROTECTED] file="inc/head.inc" %>
> <body>
> <f:view>
> <h:form>
> <s:inputSuggestAjax id="item" value="#{inputSuggestAjax.item}"
> suggestedItemsMethod="#{inputSuggestAjax.getItems}"/>
> <h:commandButton action="submit"/>
> </h:form>
> </f:view>
> <[EMAIL PROTECTED] file="inc/page_footer.jsp" %>
> </body>
> </html>
>
> When the page is loaded, I expected the value of the controller to be
> "Default item", and as I change that value and submit, the last submitted
> value to be shown. Obviously, this isn't the way InputSuggestAjax works, as
> InputSuggestAjaxBean.getItem() and InputSuggestAjaxBean.setItem() is never
> invoked and the InputSuggestAjax controller is always left blank after
> submits or reloads. So, my question is - how do I bind the value of the
> InputSuggestAjax controller to my backing beans?
>
> Cheers!
> Daniel
>
>
--
Gerald Muellan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]