02-27-2008 09:52 AM
<a:selectList id="template-list" value="#{SearchProperties.folderTypes}" styleClass="selectListTable" itemStyleClass="selectListItem">
<a:listItems value="#{AdvancedSearchDialog.folderTypes}"/>
</a:selectList>
… in the advanced-search.jsp02-29-2008 09:43 AM
<h:selectOneMenu …>
<f:selectItems value="#{AdvancedSearchDialog.folderTypes}" … />
</h:selectOneMenu>
03-03-2008 05:28 AM
java.lang.IllegalArgumentException: Value is no String (class=javax.faces.model.SelectItem, …) and component …javax.faces.component.html.HtmlSelectManyMenu… does not have a Converter
and I can't find where is the mismatch. Here is my code (Alf. 2.9b):<h:selectManyMenu id="selectManyMenu-folderTypes" value="#{SearchProperties.folderTypes}" >
<f:selectItems value="#{AdvancedSearchDialog.folderTypes}" id="selectManyMenu-folderType-items"/>
</h:selectManyMenu>
About the <a:selectList > and <a:listItems>, there are no suitable methods to let the user choose more than one folder. Right?03-06-2008 04:54 AM
03-06-2008 05:28 PM
03-13-2008 11:51 AM
You need to change the value binding to a method that accepts the output from the list …I can't find methods showing the folder types and storing themin the search bean. :?
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).OK, but there again, I can't find a method in the SearchProperties who use this List<UIListItem>. Does it mean that <a:selectList> cant be used to multiselect folders types?
03-14-2008 05:08 AM
03-14-2008 05:32 AM
The way the advanced search is implemented currently will not allow multiselect, to do so you will definitely have to make some code changes.When you say 'code changes' do you mean 'in the bean classes' or just in the jsp? I understand that I can't allow multiselect by just configuring the advansed search, but I would like to only modify the advanced-search.jsp.
<h:selectManyListbox id="selectManyMenu-folderTypes" value="#{SearchProperties.folderTypes}" converter="org.alfresco.faces.MultiValueConverter">
<f:selectItems value="#{AdvancedSearchDialog.folderTypes}" />
</h:selectManyListbox>
I keep you posted …
03-17-2008 04:03 AM
<h:selectManyCheckbox value="#{SearchProperties.folderTypes}" id="selectFolderTypes" converter="org.alfresco.faces.MultiValueConverter">
<f:selectItems value="#{AdvancedSearchDialog.folderTypes}" id="folderTypes" />
</h:selectManyCheckbox>
As expected, it displays the list of the space types that I want to (multi-)select, to restrict my search. But when I click on the 'Search', nothing seams to be done by the server. I just recieve the same 'Advanced Search' form. I'm trying to trace and find an error.03-17-2008 12:57 PM
<h:selectManyCheckbox value="#{SearchProperties.selectedFolders}" id="selectFolderTypes">
<f:selectItems value="#{AdvancedSearchDialog.folderTypes}" id="folderTypes" />
</h:selectManyCheckbox>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.