title: Is it possible to add row dynamically to panelgrid(outputlabel, inputtext) in PrimeFaces/JSF?
body: <p>I have a <code>&lt;p:panelGrid&gt;</code> like this: </p>
  
  <pre><code>&lt;p:panelGrid style="margin:inherit !important; width: 100%;
               display: flex !important;"
               styleClass="new_player_panel"&gt;
  
      &lt;p:row&gt;
          &lt;p:column&gt;
              &lt;p:outputLabel value="Name in passport: " /&gt;
          &lt;/p:column&gt;
          &lt;p:column&gt;
              &lt;p:inputText id="nameInPassport"
                           value="#{firstPlayerLoginManagedBean.surnameInPassport}"
                           required="true"&gt;
              &lt;/p:inputText&gt;
          &lt;/p:column&gt;
          &lt;p:column&gt;
              &lt;p:message for="nameInPassport" display="icon" /&gt;
          &lt;/p:column&gt;
      &lt;/p:row&gt;
      &lt;p:row&gt;
          &lt;p:column&gt;
              &lt;p:outputLabel value="Firstname in passport:" /&gt;
          &lt;/p:column&gt;
          &lt;p:column&gt;
              &lt;p:inputText id="firstnameInPassport" label="Utazási"
                           value="#{firstPlayerLoginManagedBean.firstnameInPassport}"
                           required="true"&gt;
              &lt;/p:inputText&gt;
          &lt;/p:column&gt;
          &lt;p:column&gt;
              &lt;p:message for="firstnameInPassport" display="icon" /&gt;
          &lt;/p:column&gt;
      &lt;/p:row&gt;
  &lt;/p:panelGrid&gt;
  </code></pre>
  
  <p>and so on.</p>
  
  <p>I tried to create this with <code>dataGrid(managedbean, inputfields in lists)</code>, but <code>&lt;p:dataGrid&gt;</code> is not the perfect way to do my task exactly.  I want to get behavior like this: If I click the plus icon next to the nationality field then creates another <code>&lt;p:inputText&gt;</code> for my second nationality and the other part of the form stay in the same state, and the new field push down the other fields. I have to use it a lot parts of my application. thanks in advance.</p>
  
  <p><img src="https://i.stack.imgur.com/Db4fg.png" alt="a busy cat"></p>