rich:suggestionBox doesn't work with rich:dataTable in 3.3.2
poesys Mar 4, 2010 3:43 PMUsing 3.3.2.SR1 GA RichFaces, I'm using the rich:suggestionBox inside a rich:column in a rich:dataTable, and the suggestionBox doesn't appear (Ajax request/response happens but box is never rendered). The suggestion box works fine if not in a data table/column. I saw the JIRA bugs for earlier versions, tried ajaxSingle="false", no effect. I can make the suggestionBox work by putting a region around it with renderRegionOnly = "true", but I can't put the region around both columns (necessary because the object is to fill in the second column based on the choice in the first using the a4j:support inside the suggestionBox component): once two columns are in the region, the suggestion box does not appear. Is this a possible regression bug or is there something I can do to make this work?
Here's my code snippet:
<h:form> <a4j:outputPanel id="submissionPanel"> <a4j:log popup="true" level="ALL" width="800" height="400" /> <rich:dataTable id="locusTable" rows="0" value="#{geneSubmission.genes}" var="gene" ajaxKeys="#{geneSubmission.genesToUpdate}"> <rich:column> <h:inputText value="#{gene.locus}" id="locus" size="9"> </h:inputText> <rich:suggestionbox suggestionAction="#{geneSubmission.suggestLoci}" var="l" for="locus" minChars="5" eventsQueue="locusQueue" ignoreDupResponses="true" fetchValue="#{l.name}" nothingLabel="No locus found" ajaxSingle="false" width="100" height="300"> <h:column> #{l.name} </h:column> <a4j:support event="onselect" action="#{geneSubmission.setLocusSymbol}" reRender="symbol, fullName"> <f:setPropertyActionListener value="#{l.name}" target="#{gene.locus}" /> </a4j:support> </rich:suggestionbox> </rich:column> <rich:column> <h:inputText value="#{gene.symbol}" id="symbol" size="5"> </h:inputText> </rich:column> <rich:column> <h:inputText value="#{gene.fullName}" id="fullName" size="20" maxlength="200"> </h:inputText> </rich:column> </rich:dataTable> </a4j:outputPanel> </h:form>