-
1. Re: Desperate with rich:tree re-rendering itself :(
igc May 14, 2009 5:34 AM (in response to igc)BTW, on the same div I included a simple h:outputText which shows the selected node text and uses the same backing bean and it DOES remember the state after the page re-renders!!!. Why doesn't rich:tree remember its state if other components feeding from the same backing bean are working as expected?
<h:outputText escape="false" value="Selected node: #{arbol.tituloNodoSeleccionado}" id="selectedNode" />
-
2. Re: Desperate with rich:tree re-rendering itself :(
igc May 14, 2009 10:45 AM (in response to igc)I found the solution by myself. Problem is I wasn't bindig the tree to the UITree component of the backing bean:
<rich:tree ... binding="#{arbol.uiArbol}" ...>
private UITree myTree;
Using that you can save and restore the tree data using:
Object data;
myTree.setData(data);
data = myTree.getData();
Hope this helps a lot of people that I'm sure will be facing this same problem.
I also hope that I get more help on my next issue... 0 answers is such a low number... -
3. Re: Desperate with rich:tree re-rendering itself :(
igc May 14, 2009 10:47 AM (in response to igc)"IGC" wrote:
I found the solution by myself. Problem is I wasn't bindig the tree to the UITree component of the backing bean:
<rich:tree ... binding="#{arbol.uiArbol}" ...>
I meant, to adjust the code for the example I've provided,binding = #{treeBean.myTree}
Sorry for double-posting... again :) -
4. Re: Desperate with rich:tree re-rendering itself :(
nbelaevski May 14, 2009 2:34 PM (in response to igc)Hi,
Have you seen this example: http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?tab=dnd&cid=5565200? -
5. Re: Desperate with rich:tree re-rendering itself :(
igc May 15, 2009 12:51 PM (in response to igc)As I said I already found a solution to my issue, and I had also seen that example -and others- on the Richfaces examples page but thanks anyway!