6 Replies Latest reply on Apr 9, 2009 6:47 AM by Chris Au

    ArrayIndexOutOfBoundException with suggestionBox

    Chris Au Newbie

      Dear All,

      I got the exception in the following code snippet:

      < h:inputText id="myentry" maxlength="100"
      value="#{mybean.value}" readonly="#{fieldReadOnly}"

      onblur="return someFunction();"
      onchange="return myselectfunction();"
      >

      < /h:inputText>

      < rich:suggestionbox id="mysuggestionbox"
      for="myentry"
      width="500"
      height="150"
      suggestionAction="#{autocomplete.myAutocomplete}"
      var="result"
      minChars="2"
      ajaxSingle="true"
      onselect="return myselectfunction()"
      onsubmit="mysubmitfunction();"
      >

      < h:column id="mycolumn" >
      < h:outputText id="mycolumn_outputtext"
      value="#{result.myvalue}" escape="false"
      style="width:100px"/>
      < /h:column>
      < /rich:suggestionbox>

      It seems that when I try to handle additional event other than "onselect" in suggestionbox, it will cause the exception. Both "myselectfunction()" and "mysubmitfunction()" invoke a4j:jsFunction that will call mbean function.

      Could any one provide any clue? Thanks in advance.