4 Replies Latest reply on Nov 30, 2010 9:30 PM by aboo salimon

    aj4:support will work for rich:suggestionBox

    aboo salimon Newbie

      Hi ,

       

      Will aj4:support work for rich:suggestionBox, if not then i want reRender one dataTable immediately once i selected value in rich:suggestionBox, help me out how to acheive this.

        • 1. Re: aj4:support will work for rich:suggestionBox
          Ilya Shaikovsky Master

          yes it will works fro onselect.

          • 2. Re: aj4:support will work for rich:suggestionBox
            aboo salimon Newbie

            <rich:suggestionbox id="suggestion" for="text" suggestionAction="#{propertySuggestion.propertyAutoComplete}" var="suggest" tokens="," ajaxSingle="true" nothingLabel="No matches found" immediate="true" selfRendered="true" frequency="0.01">
                       <h:column>
                        <h:outputText value="#{suggest.name}"/>
                       </h:column>

                        <a:support event="onselect" reRender="searchResult"/>

                   </rich:suggestionbox>

             

            but above code is not working ..

            • 3. Re: aj4:support will work for rich:suggestionBox
              Ilya Shaikovsky Master

              1) form around?

              2) js errors?

              3) any info from rich:messages or in server log?

               

              P.S. try to remove immediate and selfRendered also from SB.

              • 4. Re: aj4:support will work for rich:suggestionBox
                aboo salimon Newbie

                <h:form>
                                    <rich:simpleTogglePanel label="Search by location and name" switchType="client">
                                        <table width="100%" class="searchBox" border="0">
                                            <tr>
                                                <td class="adv_search_lables"><h:outputText value="#{messages['label.chooseLocation'] }"/></td>
                                                <td>
                                                    <h:selectOneMenu id="locationSelector" value="#{businessSearchData.location}" styleClass="adv_search_fields">
                                                        <s:selectItems value="#{businessesSearch.locations}" var="location" label="#{location.name}" noSelectionLabel="Select Location" />
                                                        <s:convertEntity />
                                                        <a:support event="onchange" reRender="searchResult"/>
                                                    </h:selectOneMenu>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="adv_search_lables"><h:outputText value="Property Name"/> </td>
                                                <td>
                                                    <a:region renderRegionOnly="true">
                                                        <h:inputText  style="width:131px;height:15px;" value="#{businessSearchData.hotelName}" id="text"/>
                                                        <rich:suggestionbox id="suggestion" for="text" suggestionAction="#{propertySuggestion.propertyAutoComplete}" var="suggest" tokens="," ajaxSingle="true" nothingLabel="No matches found" immediate="true" selfRendered="true" frequency="0.01">
                                                            <h:column>
                                                                <h:outputText value="#{suggest.name}"/>
                                                            </h:column>
                                                        </rich:suggestionbox>
                                                    </a:region>                   
                                                </td>
                                            </tr>
                                        </table>
                                    </rich:simpleTogglePanel>
                                </h:form>

                 

                i removed immediate and selfRendered but it is not working, above is jsp page. help me out.