2 Replies Latest reply on Feb 17, 2008 8:01 AM by Ilya Shaikovsky

    <rich:suggestionbox> only works after first page submit...

    Michael Griffith Newbie

      Hi all,

      I am sure this is a setting, but I've read the documentation related to this control and I'm not getting it. I have a suggestion box, that is working fine, but it only performs its requests after the form has initially been submitted. The data is coming from a stateless session bean, in a seam app. Is this a rich faces thing, a seam thing or a JSF thing?

      The control looks like:

       <h:form id="goalSearch" styleClass="edit">
      
       <rich:simpleTogglePanel label="Goal search parameters" switchType="ajax">
      
       <s:decorate template="layout/display.xhtml">
       <ui:define name="label">Recommendation</ui:define>
       <h:inputText id="description" value="#{goalList.goal.description}" />
       <rich:suggestionbox id="suggestionBoxId" ajaxSingle="true" for="description" suggestionAction="#{suggestBox.suggestGoals}" var="aGoal">
       <h:column>
       <h:outputText value="#{aGoal.description}" />
       </h:column>
       </rich:suggestionbox>
       </s:decorate>
      
      
       </rich:simpleTogglePanel>
      
       <div class="actionButtons">
       <h:commandButton id="search" value="Search" action="/GoalList.xhtml"/>
       </div>
      
       </h:form>
      
      


      Any help would be much appreciated!

      Cheers!
      MG