cancel
Showing results for 
Search instead for 
Did you mean: 

usage of a:selectList

gilles
Champ in-the-making
Champ in-the-making
I get an exception javax.faces.model.SelectItem cannot be cast to org.alfresco.web.ui.common.component.UIListItem when I add a simple …
<a:selectList id="template-list"  value="#{SearchProperties.folderTypes}" styleClass="selectListTable" itemStyleClass="selectListItem">
  <a:listItems value="#{AdvancedSearchDialog.folderTypes}"/>
</a:selectList>
… in the advanced-search.jsp
I checked the SearchProperties setFolderTypes, and the AdvancedSearchDialog getFolderTypes, wich use both a List<SelectItem>
Can you explain my mistake?
Thanks
12 REPLIES 12

gilles
Champ in-the-making
Champ in-the-making
I would prefer not to make changes in the classes (BTW, wat's the best way to keep compatibility with future Alfresco updates, when changing code in the classes?)
But then, what is SearchProperties.setFolderTypes(List<SelectItem> folderTypes) used for?
Thanks Gavin

gilles
Champ in-the-making
Champ in-the-making
I tracked the code, and I understand that the SearchProperties.setFolderTypes(…) isn't intended to set the multiple folder types to search for (right?). Then, OK, as I think that the SearchContext don't manage more than one folder type to restrict search against (maybe Kevin can confirm), I will add a request on JIRA.