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

    rich:Suggestion box not working

    kamaraju

      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.

      Error
      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

      JSP:
      <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:column>
      <h:outputText value="#{suggest.stateCode}"/>
      </h:column>
      </rich:suggestionbox>

      Backingbean:


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

      state.setStateCode(pref);
      stateList = stateSRemote.findAll(state);


      } catch (TnhspException ex) {

      }
      return stateList;
      }

      Thanks in advance.Request reply ASAP.