title: Primefaces Conditionally Expand LayoutUnit
body: <p>I'm using the primefaces layout component and have a center and a right layoutUnit.  I would like to have a link/button in the center layout that expands the right layoutUnit as I default the right layout to collapsed state when I first load the page.  I'm using a boolean expression on the right layoutUnit and I update it from my link. Everything works except that the right layoutUnit doesn't get ajaxed updated from my link.  If I refresh the page the right layoutUnit is expanded. </p>
  
  <p>page:</p>
  
  <pre><code>    &lt;h:form prependId="false"&gt; 
          &lt;p:layout fullPage="true"&gt;  
              &lt;p:layoutUnit id="right" position="right" width="350" header="Marker Details" resizable="true" closable="true" collapsible="true" collapsed="#{mapBean.rightCollapsed}"&gt;  
                  &lt;h:outputText value="#{mapBean.text}" /&gt;  
              &lt;/p:layoutUnit&gt;
              &lt;p:layoutUnit position="center"&gt;
                  &lt;p:commandLink actionListener="#{mapBean.showDetail}" update="right" value="Expand Right Layout"/&gt;
              &lt;/p:layoutUnit&gt;
          &lt;/p:layout&gt;
      &lt;/h:form&gt; 
  </code></pre>
  
  <p>Bean:</p>
  
  <pre><code>public class MapBean implements Serializable {
       private boolean rightCollapsed=true;
       public void showDetail(ActionEvent e){
          rightCollapsed=false;
       }
      //getter/setter for rightCollapsed
  </code></pre>