jsf 2 - jsf richFaces treeNode expanded - how to call a method with argument? -
facelet works fine in tomcat8, in wildfly8 (jboss8) stack trace on first click of expand tree node icon.
<jsf.version>2.1.13</jsf.version> <org.richfaces.version>4.3.7.final</org.richfaces.version> following facelet fragment:
<rich:tree id="tree" value="#{categorybean.categorynodes}" var="categname" prependid="true" selectiontype="ajax" toggletype="ajax" > <rich:treenode prependid="true" expanded="#{carelinebean.shouldexpandtree(categname)}" togglelistener="#{carelinebean.expandnode(categname)}" > <h:outputtext value="#{categname}" /> </rich:treenode> </rich:tree> in jboss @ first click on expand icon stack trace:
[server:server-one] caused by: javax.el.propertynotwritableexception: /editcall.xhtml @88,156 expanded="#{carelinebean.shouldexpandtree(categname)}": illegal syntax set operation [server:server-one] @ com.sun.faces.facelets.el.tagvalueexpression.setvalue(tagvalueexpression.java:136) [server:server-one] @ org.richfaces.component.abstracttree.broadcast(abstracttree.java:301) [server:server-one] ... 50 more [server:server-one] caused by: javax.el.propertynotwritableexception: illegal syntax set operation
the next click expands tree branch without stack trace
the doc of expanded states: determines if tree node expanded. when el expression used, should utilize request-scoped variable name defied in tree attribute 'var' points current node.
how can decide if node should expanded in method of backing bean, method must know current node should expanded? why working right in tomcat, not in wildfly ?
according makhiel: rf 4.3.x not supported on wildfly.
where can find information, rf jboss product , not supported in jboss8 ?!
is rf supported in jboss 7.x ?
how can rf best replaced ? need sth rf:tree , rf:treenode.
is rf 3.x supported in jboss 7.x, wildfly 8 ?
i have rewritten ${carelinebean.shouldexpandtree(categname)} ${categname.shouldexpandtree}, , working;
jsf-2 richfaces wildfly
No comments:
Post a Comment