As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<a:selectList id="template-list" value="#{SearchProperties.folderTypes}" styleClass="selectListTable" itemStyleClass="selectListItem"> <a:listItems value="#{AdvancedSearchDialog.folderTypes}"/> </a:selectList>
<h:selectOneMenu …> <f:selectItems value="#{AdvancedSearchDialog.folderTypes}" … /> </h:selectOneMenu>
java.lang.IllegalArgumentException: Value is no String (class=javax.faces.model.SelectItem, …) and component …javax.faces.component.html.HtmlSelectManyMenu… does not have a Converter
<h:selectManyMenu id="selectManyMenu-folderTypes" value="#{SearchProperties.folderTypes}" > <f:selectItems value="#{AdvancedSearchDialog.folderTypes}" id="selectManyMenu-folderType-items"/> </h:selectManyMenu>
You need to change the value binding to a method that accepts the output from the list …
As for <a:selectList>, yes, they should support multi select, there is a property on the component called "multiSelect", set it to true (it's false by default).
The way the advanced search is implemented currently will not allow multiselect, to do so you will definitely have to make some code changes.
<h:selectManyListbox id="selectManyMenu-folderTypes" value="#{SearchProperties.folderTypes}" converter="org.alfresco.faces.MultiValueConverter"> <f:selectItems value="#{AdvancedSearchDialog.folderTypes}" /> </h:selectManyListbox>
<h:selectManyCheckbox value="#{SearchProperties.folderTypes}" id="selectFolderTypes" converter="org.alfresco.faces.MultiValueConverter"> <f:selectItems value="#{AdvancedSearchDialog.folderTypes}" id="folderTypes" /> </h:selectManyCheckbox>
<h:selectManyCheckbox value="#{SearchProperties.selectedFolders}" id="selectFolderTypes"> <f:selectItems value="#{AdvancedSearchDialog.folderTypes}" id="folderTypes" /> </h:selectManyCheckbox>