title: Update component outside of h:form - ComponentNotFoundException
body: <p>I am trying to update the element "entryDiv" in my xhtml from a button inside a form like this:</p>
  
  <pre><code>&lt;div id="entryDiv"&gt;    
      &lt;div&gt;                              
          &lt;h:form id="myForm"&gt;
              &lt;c:forEach items="#{foodPlanManagementBean.loadRestaurantsHistory()}" var="restaurantHistoryEntry"&gt;
                      &lt;p:commandButton value="MyName" update="entryDiv"/&gt;
              &lt;/c:forEach&gt;
          &lt;/h:form&gt;
      &lt;/div&gt;
  
      Some more unrelated elements here...
  &lt;/div&gt;
  </code></pre>
  
  <p>However, this way all I am left with is a ComponentFoundException, tell me that the component could not be located:</p>
  
  <pre><code>Cannot find component for expression "entryDiv" referenced from "form:myForm:j_idt25".
  </code></pre>
  
  <p>I already read up a bit on SO and I found one solution proposing to put a <code>:</code> in front of the "entryDiv", but that doesn't turn out to give me any different results.</p>
  
  <p>How could I fix this?</p>