0 Replies Latest reply on Apr 19, 2008 4:24 AM by kamaraju

    rich:Suggestion box not working

    kamaraju Newbie

      I am using rich:suggestion box,I get the following error when i enter any value in the text box.I tried in both richfaces 3.1.4 and richfaces 3.2.0,but it is not working.

      PWC4011: Unable to set request character encoding to UTF-8 from context /Country-war, because request parameters have already been read, or ServletRequest.getReader() has already been called

      <h:inputText id="stateCode" value="#{stateMBean.state.stateCode}" styleClass="GeneralTxt" maxlength="5" size="5"/>
      <rich:suggestionbox for="stateCode" width="100"height="100" suggestionAction="#{stateMBean.autocomplete}" var="suggest">
      <h:outputText value="#{suggest.stateCode}"/>


      public List autocomplete(Object event) {
      try {
      System.out.println("inside autocomplete");
      String pref = event.toString();

      stateList = stateSRemote.findAll(state);

      } catch (TnhspException ex) {

      return stateList;

      Thanks in advance.Request reply ASAP.