hello, I really like to work with richfaces and I was wondering why can't we customize the content of rich:select just like on rich:auto complete :
example found this:
<rich:autocomplete attached="false" value="..." autocompleteMethod="#{bean.countries}" var="country" layout="table"> <rich:column> <h:outputText value="#{country.name}"> <rich:column> </rich:autocomplete> or list markup (encoded with ul-li tags) <rich:autocomplete attached="false" value="..." autocompleteMethod="#{bean.countries}" var="country" layout="list"> <h:outputText value="#{country.code} " style="font-weight:bold"/> <h:outputText value="#{country.name}"/> </rich:autocomplete> or simple div-based list <rich:autocomplete attached="false" value="..." autocompleteMethod="#{bean.countries}" var="country" layout="div"> <h:outputText value="#{country.code} " style="font-weight:bold"/> <h:outputText value="#{country.name}"/> </rich:autocomplete> or h:panelGrid based usage - almost the same as table but columns(td's inserted around every child) <rich:autocomplete attached="false" value="..." autocompleteMethod="#{bean.countries}" var="country" layout="grid"> <h:outputText value="#{country.code} " style="font-weight:bold"/> <h:outputText value="#{country.name}"/> </rich:autocomplete>
why can't we decide how we want our data to be displayed inside a rih:select? Is it me missing something? or it's not implemented?
or just take a look at primefaces...