[jboss-user] [Beginner's Corner] - Re: ManyToMany problem

swenu do-not-reply at jboss.com
Sat Oct 31 18:38:58 EDT 2009


one step closer :D

i got the problem - at least i think i'm close to!
on roleList.xhtml i got:

  | <s:decorate id="functionField" template="layout/edit.xhtml">
  | <ui:define name="label">Function</ui:define>					<h:selectManyCheckbox id="functions" value="#{roleHome.instance.functions}" layout="pageDirection">  
  | <s:selectItems value="#{functionList.resultList}" var="function" label="#{function.name}" />  
  | <s:convertEntity />  
  | </h:selectManyCheckbox>
  | </s:decorate>

and when i save i receive the following error:
23:33:05,776 SEVERE [application] java.lang.ClassCastException: ch.emtm.entity.Function cannot be cast to ch.emtm.entity.RoleFunction

i understood the problem, but for the moment i have no idea how to solve.
i think your code posted above with the new rolefunction() will solve - but i couldn't get.

Do you have a hint for me ;)

Thanks in advance

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263326#4263326

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263326



More information about the jboss-user mailing list