2 Replies Latest reply on Jun 2, 2010 3:12 AM by Ilya Shaikovsky

    suggestionbox does not show the suggestions

    Omar Kanaan Newbie

      Hi everyone,


      I am trying to use the suggestionbox component, i was putting it inside a modal dialog and it reaches the backing bean and fills the list and return it successfully but the suggestions does not appear on the client side, i tried moving it outside the modal dialog, i still have the same issue, i've tried setting the zindex to 9999 and still nothing appears, can anybody help me on how can i resolve this issue? my code is as below:



      <h:panelGrid columns="2" >
           <h:outputText value="#{labels.previousRequest}" rendered="#{pc_RequestDetailedView.alreadyExists}" styleClass="outputText"/>
           <h:inputText id="input" value="#{pc_RequestDetailedView.previousRequestNo}" size="40"  rendered="#{pc_RequestDetailedView.alreadyExists}"/>
      <rich:suggestionbox width="290" rendered="#{pc_RequestDetailedView.alreadyExists}" zindex="9999"
       suggestionAction="#{pc_RequestDetailedView.getPreviousRequests}" var="requests" for="input">
         <h:outputText value="#{requests.requestNo}" />
           <h:outputText value="#{requests.requestDate}" />
           <h:outputText value="#{requests.subject}" />
           <h:outputText value="#{requests.userFullName}" />


      the backing bean method is as follows:



           public List<CsUserRequest> getPreviousRequests(Object input){
                if(getCurrentUser()!=null && dto!=null && input!=null){
                          return new SupervisorDelegate().getPreviousComplaints(getCurrentUser().getId(), dto.getRequestUserId(), input.toString());
                          return new SupervisorDelegate().getPreviousSuggestions(getCurrentUser().getId(), dto.getRequestUserId(), input.toString());
                return null;