-
1. Re: tree[nodeSelectListener] never gets fired
xorsolutions Feb 22, 2008 5:18 AM (in response to yuriy_zubarev)It's because you are using Seam... Find alternative solution using JSFunction, javascript etc.
-
2. Re: tree[nodeSelectListener] never gets fired
mheidt Feb 22, 2008 11:01 AM (in response to yuriy_zubarev)I'm facing the same issue.
XorSolutions,
Is it a known bug of Seam so that it can be fixed in the future or is it because of the architecture of Seam so that it will never be fixed? -
3. Re: tree[nodeSelectListener] never gets fired
yuriy_zubarev Feb 22, 2008 11:20 AM (in response to yuriy_zubarev)Isn't there a big ad on the index page of RichFaces proudly stating that it plays nicely with Seam?
Yuriy -
4. Re: tree[nodeSelectListener] never gets fired
mheidt Feb 22, 2008 6:43 PM (in response to yuriy_zubarev)actually it works for me:
<rich:tree switchType="client" style="width:300px" nodeSelectListener="#{vehicleFamiliesManager.nodeSelectListener}" ajaxSubmitSelection="true" value="#{vehicleFamiliesManager.vehicleFamiliesTreeData}" var="item" nodeFace="#{item.type}" reRender="tree_selection_grid"> <rich:treeNode type="vf"> <h:outputText value="#{item.label}" /> </rich:treeNode> <rich:treeNode type="model"> <h:outputText value="#{item.label}" /> </rich:treeNode> </rich:tree> public void nodeSelectListener(NodeSelectedEvent evt){ try { HtmlTree tree = (HtmlTree) evt.getComponent(); this.selectedData = (VehicleFamiliesTreeNodeData) ((TreeNode) tree.getTreeNode()).getData(); } catch (Exception e){ log.error("nodeSelectListener", e); } }
But I'm using an a4j:form. -
5. Re: tree[nodeSelectListener] never gets fired
xorsolutions Feb 25, 2008 6:22 AM (in response to yuriy_zubarev)It seems that RF plays nicely with Seam when you transfer simple data but when using listeners, binding, dynamical components creating you get some troubles conserning with classloading. It works fine only when backing beans are located in war module.
Maybe I'm wrong so it will be nice if somebody tell how to make it works. -
6. Re: tree[nodeSelectListener] never gets fired
hvico Jul 21, 2009 2:47 PM (in response to yuriy_zubarev)This bug is still present, please someone look at this thread:
http://seamframework.org/Community/DynamicTreeAndNodeSelectListener
Thanks, -
7. Re: tree[nodeSelectListener] never gets fired
nbelaevski Jul 21, 2009 6:07 PM (in response to yuriy_zubarev)"XorSolutions" wrote:
It seems that RF plays nicely with Seam when you transfer simple data but when using listeners, binding, dynamical components creating you get some troubles conserning with classloading. It works fine only when backing beans are located in war module.
Maybe I'm wrong so it will be nice if somebody tell how to make it works.
To avoid classloading troubles make sure, that RF libraries are included in classpath only once; richfaces-api is in EAR, richfaces-impl and richfaces-ui in WAR. -
8. Re: tree[nodeSelectListener] never gets fired
nbelaevski Jul 21, 2009 6:22 PM (in response to yuriy_zubarev)"hvico" wrote:
This bug is still present, please someone look at this thread:
http://seamframework.org/Community/DynamicTreeAndNodeSelectListener
Thanks,
Can you please post complete code of simplified example illustrating the problem?
Another thought on this - tree listeners were not designed with lazy loading in mind; IMHO, this is simpler to implement at model/TreeNode level, then no listeners are necessary. -
9. Re: tree[nodeSelectListener] never gets fired
mnott Dec 19, 2009 4:46 AM (in response to nbelaevski)I've the exact same issue here deploying an application that's working fine on JBoss 5 now on Tomcat 5.5 - the nodeSelectListener never gets fired. Can you please post a simple example on how to do it on the node level, w/o listeners?
Thanks!
M