title: JSF and Ajax update ui:repeat not working without loading the data from database
body: <p>I am using Mojarra 2.3 JSF on tomcat with Weld. My problem is whenever i save a data to the database, the newest data being save doesn't show up, expert i load the data after saving it then it works. Below are my code.</p>
  
  <pre><code>//This is my jsf page
  &lt;h:panelGroup layout="block" id="panelBlock"&gt; 
      &lt;ui:repeat value="#{projectBean.projectList}" var="project"&gt;
          &lt;h:outputText value="#{project.title}" /&gt;
          &lt;h:outputText value="#{project.content}" /&gt;
      &lt;/ui:repeat&gt;
  &lt;/h:panelGroup&gt;
  
  &lt;h:commandLink action="#{ProjectBean.save()}"&gt;
      &lt;f:ajax execute="@form" render="panelBlock" /&gt;
  &lt;/h:commandLink&gt;
  
  #This is my ViewScoped
  
  private Project project
  private List&lt;Project&gt; projectList;
  
  @PostConstruct
  private void init() {
    projectList = projectService.findAll();
  }
  # Setter and getter
  
  public void save() {
     projectService.save(project)
  }
  
  #it works only after saving it i load the data from the database
  public void save() {
     projectService.save(project)
     projectList = projectService.findAll();
  }
  </code></pre>