title: OverlayPanel inside a Datatable
body: <p>I need to have an overlay panel in each row of my datatable for changing a record on the fly. As you can see below:</p>
  
  <p><img src="https://i.stack.imgur.com/V0Ol9.png" alt="enter image description here"></p>
  
  <p>I don't know why when I press the save button it calls two times the Setter of my attribute(str) where I store the new Age. The first time it sets the new value, but in the second set it just returns a null value.</p>
  
  <p>22:32:34,502 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) 31</p>
  
  <p>22:32:34,502 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) </p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;p:dataTable value="#{backbean.l}" var="l" style="width: 300px;"&gt;
              &lt;p:column&gt;
                  &lt;h:outputText value="#{l.id}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;h:outputText value="#{l.nome}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;h:outputText value="#{l.age}" /&gt;
              &lt;/p:column&gt;
              &lt;p:column&gt;
                  &lt;p:graphicImage value="/img/icone.png" id="newAge"&gt;
                      &lt;p:overlayPanel id="imgPanel" for="newAge" showEvent="mouseover"
                          hideEvent="mousedown" showCloseIcon="true"&gt;
                          &lt;h:outputText value="Change Age:" /&gt;
                          &lt;p:inputText value="#{backbean.str}" style="margin-left: 10px;"&gt;&lt;/p:inputText&gt;
                          &lt;br /&gt;
                          &lt;p:commandButton action="#{backbean.save}" value="Save"&gt;&lt;/p:commandButton&gt;
                      &lt;/p:overlayPanel&gt;
                  &lt;/p:graphicImage&gt;
              &lt;/p:column&gt;
          &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>Best Regards,</p>
  
  <p>Luis</p>
  
  <p>@Edit:</p>
  
  <p>Guess it's solved...
  Just added  dynamic="true" and it seems to work fine.
  Tomorrow I'll validate that solution, and then I confirm it here.</p>