How to make Request nonAjax programatically

UI Components for JSF
Post Reply
zeto
Posts: 4
Joined: 01 Jun 2011, 14:12

13 Jul 2011, 12:35

Hello

I am using p:tree and p:treeNode 's components. Inside treeNodes there is outputLink and listener onNodeSelectListener

public void onNodeSelect(NodeSelectEvent event) {
.....
if (event.getTreeNode().isLeaf()) {
FacesContext facesContext = FacesContext.getCurrentInstance();
Object nodeData = event.getTreeNode().getData();
String target = "" + nodeData;
facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, "action", target);
}

I can navigate to the other pages but only with the url redirection. I know that Ajax request cannot do "forward" navigation.
The question is: How to make non ajax request programatically with NavigationHandler ?

zeto
Posts: 4
Joined: 01 Jun 2011, 14:12

13 Jul 2011, 13:27

i made small mistake in sentence

I am using p:tree and p:treeNode 's components. Inside treeNodes there is outputLink and listener onNodeSelectListener

should be

I am using p:tree and p:treeNode 's components. Inside treeNodes there is !! outputText !! and listener onNodeSelectListener

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 43 guests