title: Update p:datalist when making a selection in a on button with primefaces
body: <p>I am using PrimeFaces on springboot and I have a view xhtml </p>
  
  <p><img src="https://i.stack.imgur.com/5xhqz.png" alt="like this"> </p>
  
  <p>And I want to update the datalist by value (diesel,essence..) </p>
  
  <p>my view code is like this:</p>
  
  <pre><code>&lt;h:form&gt;
          &lt;div id="left"&gt;
              &lt;h3&gt;Carburant&lt;/h3&gt;
              &lt;h:panelGrid columns="2" style="margin-bottom:10px" cellpadding="5"&gt;
  
                  &lt;p:selectOneRadio value="#{carFormBean.car.carburant}"&gt;
                      &lt;f:selectItem itemLabel="All" itemValue="All" /&gt;
                      &lt;f:selectItem itemLabel="Diesel" itemValue="Diesel" /&gt;
                      &lt;f:selectItem itemLabel="Essence" itemValue="Essence" /&gt;
                      &lt;f:selectItem itemLabel="Hybride" itemValue="Hybride" /&gt;
                      &lt;p:ajax event="change" update="selectedCarsList" /&gt;
                  &lt;/p:selectOneRadio&gt;
  
              &lt;/h:panelGrid&gt;
  
          &lt;/div&gt;
          &lt;div id="content" class="left_content"&gt;
  
              &lt;p:dataList value="#{carBean.cars}" var="car" type="definition"
                  id="selectedCarsList" paginator="true" rows="15"&gt;
                  &lt;f:facet name="header"&gt;
              Voiture liste
          &lt;/f:facet&gt;
          #{car.id}, #{car.marque} , #{car.model.nom},#{car.carburant} ,#{car.immVoi}
  
      &lt;/p:dataList&gt;
          &lt;/div&gt;
      &lt;/h:form&gt;
  </code></pre>
  
  <p>and the table in my database is like this <a href="https://i.stack.imgur.com/cuyMs.png" rel="nofollow noreferrer">image</a>.</p>
  
  <p>what should i add to code to make it work?</p>