Hi All-

I am having some trouble using the inputsuggestajax provided with the
tomahawk sandbox library. Everytime I enter something in the text box, it is
doing a page request (as viewed from firefox and firebug, no XHR). In
addition, it is not calling my suggestmethod. I have set the state saving to
client as been suggested by various postings in this forum. I made sure that
my method name in my jsp matches the method name in backing bean. The
backing bean has session scope. Am I missing something? I am using snapshot
version 1.1.16

Here are my relevant sections of code"

In JSP:
*************************
<s:inputSuggestAjax id="executedBy-tag"
                    value="#{createResultsBean.resultTag }"
                   
suggestedItemsMethod="#{selectMenuItems.getUserListAjax}">
</s:inputSuggestAjax>
*************************
In SelectMenuItems.java:

public List getUserListAjax(String prefix) {
        log.debug("Entering user ajax method with prefix " + prefix);

        List list = new ArrayList();

        list.add ("prefix " +1);
        list.add("prefix " +2);
        list.add("prefix " +3);
        list.add("prefix " +4);

        return list;
    }
*******************************
In CreateResultsBean.java

    private String resultTag;

   public String getResultTag() {
        return resultTag;
    }

    public void setResultTag(String resultTag) {
        this.resultTag = resultTag;
    }


******************************




-- 
View this message in context: 
http://www.nabble.com/SANDBOX%3A-INPUTSUGGESTAJAX-doing-a-full-page-request-and-not-calling-method-tf4512993.html#a12872115
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to