title: Primefaces tree with leaf opening a dialog not working
body: <p>I have a tree with one layer of nodes and leafs. 
  When user clicks on a leaf dialog should open with filled in information about that leaf. 
  I'm using Jboss 7.1.1 with Primefaces 3.5.  </p>
  
  <p>The form is in the master layout.   </p>
  
  <pre><code>&lt;p:dialog id="mealDialog" widgetVar="modalJS" modal="true"&gt;
                  &lt;h:outputText value="#{MenuBBean.Id}" id="idValue" /&gt;
          &lt;/p:dialog&gt;
          &lt;p:tree value="#{MenuBBean.model}" var="node" selectionMode="single"
              selection="#{MenuBBean.selectedNode}"&gt;
              &lt;p:ajax event="select" listener="#{MenuBBean.onNodeSelect}"
                  update="idValue" oncomplete="modalJS.show()" /&gt;
              &lt;p:ajax event="expand" listener="#{MenuBBean.onNodeExpand}" /&gt;
  &lt;!--                &lt;p:ajax event="collapse" listener="#{MenuBBean.onNodeCollapse}" /&gt; --&gt;
              &lt;p:treeNode type="node" expandedIcon="folder-open"
                  collapsedIcon="folder-collapsed"&gt;
                  &lt;h:outputText value="#{node.name}" /&gt;
              &lt;/p:treeNode&gt;
              &lt;p:treeNode type="leaf" icon="document-node"&gt;
                  &lt;h:outputText value="#{node.name}" /&gt;
              &lt;/p:treeNode&gt;
          &lt;/p:tree&gt;
  </code></pre>
  
  <p>This is the error I receive</p>
  
  <pre><code>Servlet.service() for servlet Faces Servlet threw exception: javax.faces.FacesException: Cannot find component with identifier "idValue" referenced from "main-form:j_idt26".
  </code></pre>
  
  <p>I've tried with ":" in update but it's not working.</p>