Note that there are some explanatory texts on larger screens.

plurals
  1. POMy component's value in a dialog not updated to backing bean
    text
    copied!<p>I'm using PrimeFaces 3.5 , and now i want to ask the user to input or choose some data in my dialog (choose oneSelectMenu, or insert data in inputTextarea). I also use table to arrange the UI.</p> <p>But any value from user in my dialog is not send to my backing bean. I think it's because i used it in a dialog.</p> <p>I tried to move one of my oneSelectMenu outside the dialog, and it works fine!</p> <p>Any body know what's wrong? Any response will be much appreciated.</p> <p>My backing bean is kind of standard getter and setter. (I think nothing wrong with my backing bean because it works fine outside the dialog)</p> <p>And this is my xhtml code :</p> <pre><code>&lt;p:dialog id="dlgNew" header="New Action Item" widgetVar="dlg1" modal="true" resizable="false" width="40%" height="55%" appendToBody="true"&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;p:outputLabel value="Detail"/&gt;&lt;/td&gt; &lt;td&gt;:&lt;/td&gt; &lt;td&gt;&lt;p:inputTextarea rows="5" cols="40" value="#{aiBean.detail}"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;p:outputLabel value="Status"/&gt;&lt;/td&gt; &lt;td&gt;:&lt;/td&gt; &lt;td&gt;&lt;p:selectOneMenu effect="fade" value="#{aiBean.status}"&gt; &lt;f:selectItem itemLabel="Not Started" itemValue="Not Started" /&gt; &lt;f:selectItem itemLabel="On Progress" itemValue="On Progress" /&gt; &lt;f:selectItem itemLabel="Finished" itemValue="Finished" /&gt; &lt;/p:selectOneMenu&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt; &lt;td&gt; &lt;p:commandButton value="Add" action="#{aiBean.insertAi}"/&gt; &lt;p:commandButton value="Cancel" onclick="dlg1.hide()"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p></p>
 

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