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

    suggestionbox does not show the suggestions

    oskanaan

      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}"/>
      </h:panelGrid>
      <rich:suggestionbox width="290" rendered="#{pc_RequestDetailedView.alreadyExists}" zindex="9999"
       suggestionAction="#{pc_RequestDetailedView.getPreviousRequests}" var="requests" for="input">
       <h:column>
         <h:outputText value="#{requests.requestNo}" />
      </h:column>
      <h:column>
           <h:outputText value="#{requests.requestDate}" />
      </h:column>
      <h:column>
           <h:outputText value="#{requests.subject}" />
      </h:column>
      <h:column>
           <h:outputText value="#{requests.userFullName}" />
      </h:column>
      </rich:suggestionbox>
      
       
       
      
      
      

       

      the backing bean method is as follows:

       

       

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

       

      thanks