This content has been marked as final.
Show 6 replies
-
1. Re: How to keep the richfaces tree state across requests?
venkat.sadasivam Feb 27, 2008 6:05 AM (in response to seammer)Have a look into this topic to get some examples http://jboss.com/index.html?module=bb&op=viewtopic&t=130186
-
2. Re: How to keep the richfaces tree state across requests?
venkat.sadasivam Feb 27, 2008 6:21 AM (in response to seammer)JSF Code
<rich:tree switchType="client" value="#{leftNavigationBean.menuNode}" var="node" nodeFace="#{node.type}" componentState="#{leftNavigationBean.TreeState}" selectedClass="selectedTreeNode" id="Tree"> <rich:treeNode type="menu-group" iconLeaf="/images/closed.gif" icon="/images/open.gif"> <h:outputText value="#{node.value}" /> </rich:treeNode> <rich:treeNode type="menu-item" icon="/images/page.gif"> <h:commandLink value="#{node.value}" action="#{leftNavigationBean.go}"> <f:param value="#{node.id}" name="menuId" /> </h:commandLink> </rich:treeNode> </rich:tree>
Java code: LeftNavigationBean.javapublic class LeftNavigationBean { .... private TreeState treeState; public TreeState getTreeState() { return this.treeState; } public void setTreeState(TreeState treeState) { this.treeState = treeState; } }
-
3. Re: How to keep the richfaces tree state across requests?
lonewolfffffff Apr 18, 2008 12:00 AM (in response to seammer)"venkat.sadasivam" wrote:
JSF Code<rich:tree switchType="client"
hm...
it doesn't work when I use switchType set to "client" instead of "ajax".
I'm using RichFaces 3.1.0, Oracle ADF components, Facelets for page layout template, and JDeveloper 10.1.3.3 as the IDE. -
4. Re: How to keep the richfaces tree state across requests?
ilya_shaikovsky Apr 21, 2008 6:22 AM (in response to seammer)currently latest releases are 3.2.0 GA and 3.1.5 GA (comming soon)
-
5. Re: How to keep the richfaces tree state across requests?
venkat.sadasivam Apr 21, 2008 6:59 AM (in response to seammer)let me know the error message you are getting when the type="client".
-
6. Re: How to keep the richfaces tree state across requests?
kanal Jan 19, 2011 3:25 AM (in response to venkat.sadasivam)Hi,
I found this old post on how to keep rich:tree component state, but with Richfaces4 M5 there is no package org.richfaces.component.state which should contain TreeState class. Is there different method for keeping that state now?