Primefaces 2.2 M1, Glassfish 3.1, Moharra 2.0.3
I use a tree component,but i can only use outputText tag in the node tag.So how can i navigate to a page in new window when clicks node.
Anybody can help me! thanks.
How to navigate to a page in new window in tree?
First of all, before posting, read the Forum Posting Guidelines.
You can use the RequestContext API, more specific "addCallBackParam(String name, Object value)",
and use the returning value to execute a javascript opening a new window.
Read User Guide page 399 and following
You can use the RequestContext API, more specific "addCallBackParam(String name, Object value)",
and use the returning value to execute a javascript opening a new window.
Read User Guide page 399 and following
JSF-2.0, mojarra-2.0.2-FCS and PrimeFaces-2.1 on GlassFish v3.0.1 (build 22)
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Please see item #3 in forum posting guideline.Why nobody help me? isn't this question worth to answer?
http://primefaces.prime.com.tr/forum/vi ... f=3&t=1194
Thanks.
Thanks for help! And i'm so sorry for not read "Forum Posting Guidelines",now i read it.
The RequestContext API can deal this problem,but it isn't easy.I want use NavigationHandler.I try <h:comandButton> in <p:treeNode> and it work,but the display style is not correct.I try <h:commandLink> but it isn't work. So if the <h:outputText> is only way in <p:treeNode>.
I'm sorry for my poor english.
The RequestContext API can deal this problem,but it isn't easy.I want use NavigationHandler.I try <h:comandButton> in <p:treeNode> and it work,but the display style is not correct.I try <h:commandLink> but it isn't work. So if the <h:outputText> is only way in <p:treeNode>.
I'm sorry for my poor english.
primefaces:jakarta:12.0.0.jar,
primefaces-ext:jakarta:12.0.0.jar,
JSF Mojarra 3.0
glassfish-6.2.5,
netbeans 14
IDEA 2022.2.2
Browser: Edge
primefaces-ext:jakarta:12.0.0.jar,
JSF Mojarra 3.0
glassfish-6.2.5,
netbeans 14
IDEA 2022.2.2
Browser: Edge
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
You can use h:outputLink inside a treeNode and use target option of outputLink to open a new page.
Thanks for quick answer.It works good.
But I still think <h:commandLink> shold be supported,so action attribute can be used for some special works.
But I still think <h:commandLink> shold be supported,so action attribute can be used for some special works.
primefaces:jakarta:12.0.0.jar,
primefaces-ext:jakarta:12.0.0.jar,
JSF Mojarra 3.0
glassfish-6.2.5,
netbeans 14
IDEA 2022.2.2
Browser: Edge
primefaces-ext:jakarta:12.0.0.jar,
JSF Mojarra 3.0
glassfish-6.2.5,
netbeans 14
IDEA 2022.2.2
Browser: Edge
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I agree, tree will be revised for maintenance and new features like dragdrop for 2.2.1 so we are pushing tree related issues to 2.2.1. It will be a cool tree soon supporting all these and new stuff.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 54 guests