title: Update attribute in JSF custom component expect full element ID path where as direct PrimeFaces component runs with short element ID path
body: <p>I am using <code>&lt;p:commandButton&gt;</code> tag with update attribute and passing current element ID in update attribute as <code>currentForm: messages</code>. something like: <code>update="currentForm: messages"</code>. Where messages is the <code>id</code> of <code>&lt;div&gt;</code> element which I want to update after request call.</p>
  
  <p>This is working fine.</p>
  
  <p>Now I created a composite component with the same command button as we have in main template and replaces that PrimeFaces command button with created custom command button. (for now no any custom changes made in created command button just prime faces command button in this)</p>
  
  <p>When I rendered the template it is complaining me about the ID given update attribute error given as:</p>
  
  <pre><code>javax.faces.FacesException: Cannot find component with expression "currentForm
  </code></pre>
  
  <p>and if I give full element ID path for this element it works again.</p>
  
  <p>Although it is good if we give full element ID path to the element, but it surprise me why it is working when I am calling direct PrimeFaces command button ?</p>