title: Ajax execute all every time
body: <p>I have a problem with <strong>f:ajax</strong></p>
  
  <p>When I click on a submit button, Ajax reload all the page, included preRenderView (my @PostConstruct method). Indeed, I've put <strong>System.out.print</strong> in my getters method, and they are called again after I click on a submit button.</p>
  
  <p>I would like to only execute the form without reloading other components.</p>
  
  <p>I've already tried with <strong>ui:repeat</strong>, I've got the same result.</p>
  
  <p><strong>JSF</strong></p>
  
  <pre><code>&lt;html 
  xmlns="http://www.w3.org/1999/xhtml" 
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:c="http://java.sun.com/jsp/jstl/core" &gt;
  
  &lt;h:head&gt;
  &lt;/h:head&gt;
  
  &lt;h:body&gt;
  
      &lt;f:metadata&gt;
          &lt;f:event listener="#{mainController.init()}" type="preRenderView" /&gt;
      &lt;/f:metadata&gt;
  
      &lt;h:panelGroup id="clients" &gt;
          &lt;c:forEach items="#{mainController.getClients()}" var="client" &gt; 
              &lt;h:panelGroup layout="block" id="#{client}" &gt;
                  #{client}
                  &lt;c:forEach items="#{mainController.getApplications(client)}" var="application" &gt; 
                      &lt;h:panelGroup layout="block" id="#{application}"&gt;
                          #{application}
                          &lt;h:form id="form_#{application}" &gt;
                              &lt;h:commandButton value="Try" action="#{mainController.test()}" &gt;
                                  &lt;f:ajax execute="@form" render="@none" /&gt; 
                              &lt;/h:commandButton&gt;
                          &lt;/h:form&gt;
                      &lt;/h:panelGroup&gt; 
                  &lt;/c:forEach&gt;
              &lt;/h:panelGroup&gt;
          &lt;/c:forEach&gt;
      &lt;/h:panelGroup&gt;
  &lt;/h:body&gt;
  </code></pre>
  
  <p></p>