I have a strange problem right now (see title of question). It says it cant cast to said object even though there should be no casting required.
JSF-Page: http://pastebin.com/0aFNWc4h Bean: http://pastebin.com/vtA552fA
Every selected item of the SelectManyCheckbox should be stored as TeamTO-object in this list.
Field declaration in the Bean:
private List<TeamTO> preSelectionRecipientsTeams;
Snippet from the jsf page:
<h:selectManyCheckbox id="preSelectionRecipientsTeams" value="#{sendMailBean.preSelectionRecipientsTeams}">
Upon trying to iterate over this list
for (TeamTO t : getPreSelectionRecipientsTeams()) {...}
I get said error. Any ideas?