Note that there are some explanatory texts on larger screens.

plurals
  1. POp:ajax, how to submit information from other forms?
    primarykey
    data
    text
    <p>I'm using <strong>PrimeFaces 3.4</strong>. I have p:layout with <code>p:tree</code> in left layout unit, and the list of panels in the central unit. After selecting/unselecting the nodes on tree I'm rendering/unrendering the panels. The general structure looks like that:</p> <pre><code>&lt;p:layoutUnit position="west" minSize="150" size="300"&gt; &lt;h:form id="tree"&gt; &lt;p:tree id="tree" value="#{tree.root}" var="node" selectionMode="multiple" selection="#{tree.selectedNodes}"&gt; &lt;p:ajax event="select" listener="#{tree.treeSelect}" process=":main" update=":main:panels"/&gt; &lt;p:ajax event="unselect" listener="#{tree.treeUnselect}" process=":main" update=":main:panels"/&gt; &lt;p:treeNode&gt; &lt;h:outputText value="#{node.title}" /&gt; &lt;/p:treeNode&gt; &lt;/p:tree&gt; &lt;/h:form&gt; &lt;/p:layoutUnit&gt; &lt;p:layoutUnit position="center" header="Panels" styleClass="noscroll"&gt; &lt;h:form id="main"&gt; &lt;p:outputPanel id="panels" styleClass="center-panels"&gt; &lt;!-- here go the panels --&gt; &lt;/p:outputPanel&gt; &lt;/h:form&gt; &lt;/p:layoutUnit&gt; </code></pre> <p>But the panels contains the input fields. I've noticed, that the input fields are reseted after click on tree, so I've added the process <code>attribute</code>. I've tried with <code>:main</code>, <code>:main:panels</code>, <code>@all</code>, but none of them have functioned.</p> <p>How can I work correctly with that scenario? PrimeFaces bugture (a bug that is feature) doesn't allow using single form when you are using <code>p:layout</code>, at least this is stated in documentation. And using multiple forms, I'm loosing data. </p>
    singulars
    1. This table or related slice is empty.
    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