0 Replies Latest reply on Jul 6, 2007 12:36 PM by smithbstl

    SuggestionBox problems


      I am trying to get a suggestionbox to display a list of customers. I am using JBoss Seam with this.

      What I want to happen is have the suggestion keep filtering the names based on subsequent keystrokes like in the demo example

      Here is what I have so far

      <h:inputText id="customer_input"
      <rich:suggestionbox for="customer_input"
       <h:outputText value="#{cust.lastFirstName}" />

      Note Customer == User

      public List suggestCustomer(Object suggest) {
       log.info("Started Suggest Customer");
       Query q = entityManager.createQuery("SELECT u FROM User u WHERE u.userLastName LIKE :suggest");
       q.setParameter("suggest", (String)suggest + "%");
       return q.getResultList();

      I keep getting these messages in the server log when I type "c" in the inputbox (does not matter what the character is) but no stack trace is thown
      007-07-06 11:18:04,841 INFO [javax.enterprise.resource.webcontainer.jsf.lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
      sourceId=requestDetail_Form:customer_input[severity=(ERROR 2), summary=(Conversion Error setting value 'c' for 'null Converter'. ), detail=(Conversion Error setting value 'c' for 'null Converter'. )]

      I am guessing that it has something to do with getting the user/customer object back from the suggestion box vs just returning the string label.

      Do I need s:convertEntity somewhere or some other type of coverter?
      Thanks for any help