restprimefacesclientnuxeo

How can i create an action when selecting in treeNode primefaces


I am making a jsf application using the Nuxeo Java client which is a rest api. I have structured a primefaces tree that shows the titles of nuxeo documents.What i want to do is opening a page that shows the metadata of the nuxeo document or editing the document, when clicking in a node.Any idea?


Solution

  • There is an ajax behavior provided for select event, you can place this in the tree :

    <p:ajax event="select" update=":form:messages" listener="#{treeEventsView.onNodeSelect}" />