This content has been marked as final.
Show 3 replies
-
1. Re: Problem with Suggestionbox inside Datatable with checkbo
romaintaz Dec 6, 2007 5:37 AM (in response to romaintaz)Hi again,
I made another test, which "works" (i.e. the suggestionbox appears for all rows, but after the second character for any row which is not the last row):
I built my datatable by defining all headers, and then all column content.
My code is the following now:<h:form> <rich:dataTable value="#{fake.elements}" var="elt"> <f:facet name="header"> <rich:columnGroup> <rich:column> <h:selectBooleanCheckbox/> </rich:column> <rich:column> <h:outputText value="Description"/> </rich:column> </rich:columnGroup> </f:facet> <rich:column> <h:selectBooleanCheckbox/> </rich:column> <rich:column> <h:inputText id="sugg" value="#{elt.description}" styleClass="std"/> <rich:suggestionbox height="200" width="200" for="sugg" suggestionAction="#{fake.autocomplete}" var="suggest"> <h:column> <h:outputText value="#{suggest.description}"/> </h:column> </rich:suggestionbox> </rich:column> </rich:dataTable> </h:form>
However, I really need to understand why my first example does not work!
Romain -
2. Re: Problem with Suggestionbox inside Datatable with checkbo
romaintaz Dec 7, 2007 3:14 AM (in response to romaintaz)For information, I work with version 3.1.2 of Richfaces.
I tried the version 3.1.2.SP1 but the problem still occurs. -
3. Re: Problem with Suggestionbox inside Datatable with checkbo
romaintaz Dec 7, 2007 11:24 AM (in response to romaintaz)Hi again,
I found a way to make my code working: I just defined the value attribute for the checkbox that is in the header of the column:... <rich:dataTable value="#{fake.elements}" var="elt"> <rich:column> <f:facet name="header"> <h:selectBooleanCheckbox value="#{fake.checked}"/> </f:facet> <h:selectBooleanCheckbox/> </rich:column> ...
However, I still get the problem where I need to type 2 characters the first time on any row, except the last one, to have the suggestion box displayed...
I still don't understand why the suggestion box does not appear without the value attribute in the checkbox...