2 Replies Latest reply on Apr 21, 2008 9:15 AM by Ilya Shaikovsky

    richfaces+3.2+suggestionbox

    kamaraju Newbie

      i am facing problem whiling using suggestion box iam unable to get a suggestion box .. please some one can help me

        • 1. Re: richfaces+3.2+suggestionbox
          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.

          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.

          • 2. Re: richfaces+3.2+suggestionbox
            Ilya Shaikovsky Master

            try 3.2.0 SR 1 please.