-
1. Re: is it possible to render pages using rich:tree as refere
flinch Apr 29, 2009 12:17 AM (in response to flinch)My rich:tree is
---------------------------
<f:view>
<h:form>
<rich:tree switchType="client" value="#{treeManager.treeNode}"
var="nod" nodeSelectListener="#{treeManager.processLSelection}">
<rich:treeNode icon="/image/dtpick.gif"
nodeSelectListener="#{treeManager.processLSelection}">
<h:outputText value="#{nod}" />
</rich:treeNode>
</rich:tree>
</h:form>
</f:view>
---------------------------------------
Backing bean function is
--------------------------------------
public void processLSelection(NodeSelectedEvent event) {
UITree tree = (UITree)event.getComponent();
String selectedNodeTitle = (String) tree.getRowData());
}
----------------------------------------
Please help, -
2. Re: is it possible to render pages using rich:tree as refere
nbelaevski Apr 29, 2009 12:59 AM (in response to flinch)Hello,
Can you please clarify what do you mean by "as reference"? -
3. Re: is it possible to render pages using rich:tree as refere
flinch May 4, 2009 7:31 AM (in response to flinch)"nbelaevski" wrote:
Hello,
Can you please clarify what do you mean by "as reference"?
I want the nodes to link to other pages.. -
4. Re: is it possible to render pages using rich:tree as refere
nbelaevski May 4, 2009 7:37 AM (in response to flinch)No problem, check this:
... <rich:treeNode icon="/image/dtpick.gif" nodeSelectListener="#{treeManager.processLSelection}"> <h:outputLink value="#{nod.address}"> <h:outputText value="#{nod.title}" /> </h:outputLink> </rich:treeNode>
-
5. Re: is it possible to render pages using rich:tree as refere
flinch May 4, 2009 8:14 AM (in response to flinch)"nbelaevski" wrote:
No problem, check this:... <rich:treeNode icon="/image/dtpick.gif" nodeSelectListener="#{treeManager.processLSelection}"> <h:outputLink value="#{nod.address}"> <h:outputText value="#{nod.title}" /> </h:outputLink> </rich:treeNode>
Hey thanks.. can u please post the backing bean also.. i.e treeManager -
6. Re: is it possible to render pages using rich:tree as refere
nbelaevski May 4, 2009 9:43 AM (in response to flinch)I've just copied your code, nodeSelectListener is not necessary at all to use links.
-
7. Re: is it possible to render pages using rich:tree as refere
flinch May 4, 2009 10:23 AM (in response to flinch)Oh then can u suggest me an alternative, shall i try h:commandLink ?
-
8. Re: is it possible to render pages using rich:tree as refere
ilya_shaikovsky May 4, 2009 11:07 AM (in response to flinch)http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?tab=dnd
please check at least this. In this example right browser side updated after tree nodes selection. If you meant navigation that you could use outputLink as Nick's suggested. We can't propose more help till you build at list something and show the concrete problem. -
9. Re: is it possible to render pages using rich:tree as refere
flinch May 5, 2009 4:10 AM (in response to flinch)"ilya_shaikovsky" wrote:
http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?tab=dnd
please check at least this. In this example right browser side updated after tree nodes selection. If you meant navigation that you could use outputLink as Nick's suggested. We can't propose more help till you build at list something and show the concrete problem.
Thanks.. but that link doesnt seem to be working.. :) -
10. Re: is it possible to render pages using rich:tree as refere
ilya_shaikovsky May 5, 2009 5:22 AM (in response to flinch)sorry but works for me fine.. maybe you catch some server maintenance.. :)
-
11. Re: is it possible to render pages using rich:tree as refere
flinch May 5, 2009 7:42 AM (in response to flinch)hey thanks i think i got it.. :)
-
12. Re: is it possible to render pages using rich:tree as refere
sincanvin Nov 4, 2011 12:21 PM (in response to flinch)Hi Sharath,
I am trying to do the same thing to attach a hyperlink to the leaf node. Can you pl. tell me how did you this? I know it will be diificult for you to remember the solution after 2 yrs but any help on this will be appreciated.
Thanks,