title: Primefaces drag and drop with dynamic data
body: <p>I'm quite new to primefaces and i ran to this issue with p:draggable commponent.
  This is my web site using p:draggable component exactly as in primefaces showcases.</p>
  
  <pre><code>            &lt;p:fieldset legend="PreparedData"&gt;
  
                  &lt;p:dataGrid id="currentData" columns="1" var="res" value="#{SomeBean.data}"&gt;
                      &lt;p:column&gt;
                          &lt;p:panel id="draggedres" header="#{res.name}"&gt;
                              &lt;h:panelGrid columns="1"&gt;
                                  &lt;h:outputText value="#{res.name}"/&gt;
                              &lt;/h:panelGrid&gt;
  
                          &lt;/p:panel&gt;
                          &lt;p:draggable for="draggedres" /&gt;
  
                      &lt;/p:column&gt;
                  &lt;/p:dataGrid&gt;
               &lt;/p:fieldset&gt;
               &lt;p:commandButton value="Add" actionListener="#{SomeBean.addItem}" update="currentData" /&gt;
  </code></pre>
  
  <p>Theres my bean SomeBean.</p>
  
  <pre><code>public class SomeBean{
  
      private List&lt;SomeObjects&gt; data = new ArrayList&lt;SomeObjects&gt;();
  
      public void addItem(){
          data.add(new SomeObjects("someName"));
      }
  
      //GETTERS SETTERS                 
  }
  </code></pre>
  
  <p>Now the problem is that when i add new data to that List it appears BUT is not draggable. Only way how to make those data draggable is to set them into constructor of that bean.
  Anyone know where did i make mistake? I already read Primefaces manual but theres nothing about it. In there they just silently assume that data will be set only from contructor.
  Thanks for any answers.</p>