-
1. Re: aj4:support will work for rich:suggestionBox
ilya_shaikovsky Nov 25, 2010 9:29 AM (in response to aboocs01)yes it will works fro onselect.
-
2. Re: aj4:support will work for rich:suggestionBox
aboocs01 Nov 26, 2010 2:39 AM (in response to ilya_shaikovsky)<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 Nov 26, 2010 3:18 AM (in response to aboocs01)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
aboocs01 Nov 30, 2010 9:30 PM (in response to ilya_shaikovsky)<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.