This content has been marked as final.
Show 3 replies
-
1. Re: dynamic columns inside <rich:suggestionBox>
ilya_shaikovsky Jul 14, 2009 5:35 AM (in response to ibk1304)could you create some small sample for us with mock data and share for investigation?
-
2. Re: dynamic columns inside <rich:suggestionBox>
ibk1304 Jul 14, 2009 4:22 PM (in response to ibk1304)On further investigation, turns out that it was because I am using the outer table's variable to create the dynamic columns and it won't evaluate that.
So this is the difference. The first one doesn't work, but the second one does.<rich:dataTable id="grid" value="#{tableBean.list}" var="child" rowKeyVar="rowNum"> <h:column> <a4j:region id="suggestBoxRegion" renderRegionOnly="true"> <h:inputText id="studentType" value="#{child.studentType}"/> <rich:suggestionbox id="studentTypeSuggestions" for="studentType" var="suggestion" suggestionAction="#{child.filterSuggestions}"fetchValue="#{suggestion.studentType}" minChars="1" width="300"> <f:facet name="nothingLabel"> <h:outputText value="No matches found" /> </f:facet> <rich:columns value="#{child.students}" var="displayColumn" index="rowCount"> <h:outputText value="#{suggestion.displayColumns[rowCount]}" /> </rich:columns> </rich:suggestionbox> </a4j:region> </h:column> </rich:dataTable>
<rich:dataTable id="grid" value="#{tableBean.list}" var="child" rowKeyVar="rowNum"> <h:column> <a4j:region id="suggestBoxRegion" renderRegionOnly="true"> <h:inputText id="studentType" value="#{child.studentType}"/> <rich:suggestionbox id="studentTypeSuggestions" for="studentType" var="suggestion" suggestionAction="#{child.filterSuggestions}"fetchValue="#{suggestion.studentType}" minChars="1" width="300"> <f:facet name="nothingLabel"> <h:outputText value="No matches found" /> </f:facet> <rich:columns value="#{staticBean.students}" var="displayColumn" index="rowCount"> <h:outputText value="#{suggestion.displayColumns[rowCount]}" /> </rich:columns> </rich:suggestionbox> </a4j:region> </h:column> </rich:dataTable>
The only difference is <rich:columns value="#{staticBean.students}" ..> instead of <rich:columns value="#{iteratingVariable.students}" ..>
Thanks ! -
3. Re: dynamic columns inside <rich:suggestionBox>
nbelaevski Jul 14, 2009 4:53 PM (in response to ibk1304)Hi,
Such usage <rich:columns value="#{iteratingVariable.students}" ..> is illegal, check documentation for more.