I have a big problem with tree component. On xhtml tree looks like:
<h:form> <rich:tree style="width:200px" nodeSelectListener="#{personManager2.processSelection}" ajaxSubmitSelection="true" switchType="client" value="#{personManager2.tree}" var="item" ajaxKeys="#{null}" id="out"> </rich:tree> </h:form>
and it is OK. After click on node I have cast error:
[lifecycle] /home.xhtml @46,76 nodeSelectListener="#{personManager2.processSelection}": javax.ejb.EJBTransactionRolledbackException: org.richfaces.component.html.HtmlTree cannot be cast to org.richfaces.component.html.HtmlTree
NodeSelectListener looks like:
public void processSelection(NodeSelectedEvent event){ HtmlTree tree = (HtmlTree)event.getComponent(); ................ }
Line
HtmlTree tree = (HtmlTree)event.getComponent();
causes problem. How to resolve that problem? Where is the problem?
I check JBoss 4.2.3 , 5.0 seam 2.1.0 and 2.1.1 and richfaces 3.2.2. and tried with jars and MANIFEST.MF file (class-path). Nothing wokrs.
Change line in
F:\jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\META-INF\jboss-service.xml
from
<attribute name="UseJBossWebLoader">false</attribute>
<attribute name="UseJBossWebLoader">true</attribute>