-
1. Re: panelgrid alignment and component binding
ilya_shaikovsky Aug 22, 2007 7:46 AM (in response to viggo.navarsete)1) gridContent class sets the alignment? Than you need to define it for every column you need like:
<h:panelGrid columnClasses="gridContent, gridContent" columns="2">
2) After clicking on the node - select is fires ajax request with corresponding listener. So you just need to point the right panel content to some properties that will be updated in this listener and reRender it from the tree. -
2. Re: panelgrid alignment and component binding
viggo.navarsete Aug 22, 2007 7:50 AM (in response to viggo.navarsete)Thanks ilya, I will try :)
-
3. Re: panelgrid alignment and component binding
viggo.navarsete Aug 22, 2007 8:39 AM (in response to viggo.navarsete)ilya: Could you please provide an example for my question nr.2?
-
4. Re: panelgrid alignment and component binding
viggo.navarsete Aug 22, 2007 8:41 AM (in response to viggo.navarsete)Is it something like this:
<r:treeNode type="entityNode" nodeSelectListener="#{searchBean.nodeSelected}">
where nodeSelected is my action method in my backing bean whihc will be called when someone select a node?
How can I determine which node was selected? -
5. Re: panelgrid alignment and component binding
ilya_shaikovsky Aug 22, 2007 8:57 AM (in response to viggo.navarsete)Even simpliest (if you need to make clickable only leafs not the all nodes) - is to make separate treenode for leafs and put a4j links to the markup of this nodes. On this command links you may specify reRender to right panel. And using params - you may set params for clicked link.
-
6. Re: panelgrid alignment and component binding
viggo.navarsete Aug 22, 2007 8:59 AM (in response to viggo.navarsete)thanks, will give it a try:)