Note that there are some explanatory texts on larger screens.

plurals
  1. POPrimefaces ajax listner not Invoked on select Event in Tree Component
    primarykey
    data
    text
    <p>I am using primefaces Tree Componemt as a Navigator which loads the Center/Main Content through ajax calls based on the node select. The code is working fine when i run it through Eclipse but when i try the same after deployment to <strong>Google App Engine</strong> the nodeSelect event listner is not at all invoked on appengine</p> <p><strong>menu.xhtml</strong></p> <pre><code>&lt;h:form id="adminForm" styleClass="formStyle"&gt; &lt;p:growl id="adminMessage" showDetail="true" /&gt; &lt;p:tree value="#{adminMenuBean.root}" var="node" selectionMode="single" &gt; &lt;p:ajax event="select" listener="#{adminMenuBean.onNodeSelect}" process="@this" update=":main" dynamic="true"/&gt; &lt;p:treeNode id="adminTreeNode"&gt; &lt;h:outputText value="#{node}" id="lblNode" /&gt; &lt;/p:treeNode&gt; &lt;/p:tree&gt; &lt;/h:form&gt; </code></pre> <p><strong>AdminMenuBean.java</strong> (Managed Bean)</p> <pre><code>@ManagedBean(name = "adminMenuBean") @SessionScoped public class AdminMenuBean implements Serializable { private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger(AdminMenuBean.class .getName()); private String name; private String caddress; private Date dob; private Long mobileno; private double uniqueno = 0; private String navigationUrl = "UserRequest"; private TreeNode root; public TreeNode getRoot() { return root; } public AdminMenuBean() { root = new DefaultTreeNode("root", null); TreeNode admin = new DefaultTreeNode("Admin", root); TreeNode UserRequest = new DefaultTreeNode("User Request", admin); TreeNode ManageUser = new DefaultTreeNode("Manage User", admin); TreeNode DocumentManagement = new DefaultTreeNode( "Document Management", root); } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCaddress() { return caddress; } public void setCaddress(String caddress) { this.caddress = caddress; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob; } public Long getMobileno() { return mobileno; } public void setMobileno(Long mobileno) { this.mobileno = mobileno; } public double getUniqueno() { uniqueno = uniqueno + Math.random(); return uniqueno; } public void setUniqueno(double uniqueno) { this.uniqueno = uniqueno; } public String getNavigationUrl() { return navigationUrl; } public void setNavigationUrl(String navigationUrl) { this.navigationUrl = navigationUrl; } public void onNodeSelect(NodeSelectEvent event) { log.info("node select"+ navigationUrl); if (event.getTreeNode().getParent().toString() != "root" || event.getTreeNode().getData().toString() == "Document Management") { String url = event.getTreeNode().getData().toString(); try { url = url.replaceAll(" ", ""); System.out.println("url--&gt;" + url); this.setNavigationUrl(url); } catch (Exception e) { e.printStackTrace(); } } } } </code></pre> <p>My Project Dependencies </p> <ol> <li>Primefaces 3.4</li> <li>JDK 1.6</li> <li>JSF 2.0</li> <li>Appengine SDK Version 1.7.4</li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload