3 Replies Latest reply on Sep 5, 2007 1:43 PM by ilya_shaikovsky

    SuggestionBox in datatable

    yogesh_kokare

      Hi All,

      I am not able to use rich:suggestionbox in datatable. Suggestionbox component does not show list of fetched list if used in datatable. But same component works fine when used outside the datatable. Can anyone help me out. I want to use suggestionbox in datatable

      Following is the code snippet from my jsp
      <t:column>
      <f:facet name="header" >
      <t:outputText id="outskillname"
      value="#{labels.skillBean_Skillname}"/>
      </f:facet>
      <rich:panel style="height:200px;">
      <t:inputText id="txtskillname" forceId="true"
      value="#{resourceView.repeatPassword}" />
      <rich:suggestionbox
      height="100"
      width="300"
      for="txtskillname"
      rows="10"
      suggestionAction="#{resourceView.getSkillNames}"
      var="result"
      tokens=","
      fetchValue="#{result.labelProperty}" >
      <h:column>
      <h:outputText value="#{result.labelProperty}" />
      </h:column>
      </rich:suggestionbox>
      </rich:panel>
      </t:column>

      Thanks.

        • 1. Re: SuggestionBox in datatable
          ilya_shaikovsky

          use a4j:ajaxListener with org.ajax4jsf.ajax.ForceRender type nested to suggestion component.

          • 2. Re: SuggestionBox in datatable
            tb44

            hello,

            i have the same problem : no list with suggestionBox when used in dataTable.

            I added this like you say :
            a4j:ajaxListener with org.ajax4jsf.ajax.ForceRender

            but still problem exist.

            • 3. Re: SuggestionBox in datatable
              ilya_shaikovsky

              for me works with

               <h:form>
               <rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="5" id="table">
               <rich:column>
               <h:inputText value="#{cap.name}" required="true" id="test"/>
               <rich:suggestionbox height="200" width="200" suggestionAction="#{bean.autocomplete}" var="cit" for="test">
               <h:column>
               <h:outputText value="#{cit.text}"></h:outputText>
               </h:column>
               </rich:suggestionbox>
               </rich:column>
               </rich:dataTable>
               <rich:datascroller for="table"/>
               </h:form>


              My env:
              RF 3.1.0 RC4
              JSF 1.2._04
              Facelets 1.1.12