2 Replies Latest reply on May 8, 2009 12:09 AM by Alexander Chubenko

    rich:suggestionbox javasript error

    Alexander Chubenko Newbie

      Hello.
      I have a question about rich:suggestionbox behavior.
      When i call suggest first time everything working fine, but if i send ajax request and rerender something suggestionbox does not appear then.

      Here's my code:

      <h:form>
       <a4j:outputPanel layout="block">
       <a4j:region id="AdressReg" selfRendered="true">
       <h:panelGrid columns="2">
       <h:outputText value="Regions"/>
      
       <h:panelGroup>
       <h:inputText id="txtRegion" size="25"
       value="#{kladr.region}"
       immediate="true"/>
       <rich:suggestionbox ajaxSingle="true" height="100" width="170"
       id="sbRegions" suggestionAction="#{kladr.processRegionsSuggest}"
       for="txtRegion" minChars="3" ignoreDupResponses="true"
       var="suggest" nothingLabel="Empty!"
       usingSuggestObjects="true"
       >
       <a4j:support event="onselect">
       <f:setPropertyActionListener target="#{kladr.selRegion}" value="#{suggest}"/>
       </a4j:support>
       <h:column>
       <h:outputText value="#{suggest.socr}. #{suggest.name}"/>
       </h:column>
       </rich:suggestionbox>
       </h:panelGroup>
      
       </h:panelGrid>
       <a4j:commandButton value="Clear"
       action="#{kladr.regionSelection}"
       reRender="txtRegion"
       limitToList="true"
       />
       </a4j:region>
       </a4j:outputPanel>
       </h:form>