title: PrimeFaces dialog does not show up
body: <p>hi I'm working with PrimeFaces. When I encountered this problem. I want to display the values I entered in the form while clicking the save button</p>
  
  <p>and the XHTML file is</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html
  xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:c="http://java.sun.com/jsp/jstl/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
            &lt;h:head&gt;
            &lt;title&gt;
            calender popup problem
            &lt;/title&gt;
  
  
            &lt;/h:head&gt;
  
  &lt;body&gt;
      &lt;h:form&gt;
          &lt;TABLE&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;h:outputText value="*"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;h:outputText value="COUPOUN NAME" /&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;p:inputText id="coupounname"  maxlength="50" value="#{office.coupounname}"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="padding-top: 10px"&gt;
                  &lt;td&gt;&lt;h:outputText value="*"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;h:outputText value="COUPOUN CODE" /&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;p:inputText id="couponcode" value="#{office.coupouncode}"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="padding-top:10px"&gt;
                  &lt;td&gt;&lt;h:outputText value="*"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;h:outputText value="COUPOUN DESCRIPTION"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;p:inputTextarea id="coupoundes" value="#{office.coupouncode}"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr style="padding-top: 10px"&gt;
                  &lt;td&gt;&lt;h:outputText value= "*"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;h:outputText value="Discount"/&gt;&lt;/td&gt;
  
             &lt;!-- &lt;td&gt;
                      &lt;p:selectOneRadio id="radiobuttons" value="#{office.percentage}"&gt;
                      &lt;f:selectItem itemLabel="in ruppes" itemValue="ByCash"/&gt;
                      &lt;f:selectItem itemLabel="inpercentage" itemValue="InPercentage"/&gt;
                      &lt;/p:selectOneRadio&gt; 
                  &lt;/td&gt; --&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;h:outputText value="*"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;h:outputText value="Validity"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;p:calendar value="#{office.startdate}"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;p:calendar value="#{office.enddate}"/&gt;&lt;/td&gt;
              &lt;/tr&gt; 
              &lt;tr&gt;
                  &lt;td&gt;&lt;p:commandButton id="save" value="save" action="#{officebean.save}"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;p:commandButton id="cancel" value="cancel"/&gt;&lt;/td&gt;
              &lt;/tr&gt;
  
          &lt;/TABLE&gt;
      &lt;/h:form&gt;
      &lt;ui:include src="dialogs.xhtml"/&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and the dialog is stored in the file</p>
  
  <pre><code>&lt;p:dialog id="listdialog" visible="${officebean.dialogvisible eq 'Bean'} " dynamic="true" minHeight="120"&gt; 
      &lt;h:form id="dialogform"&gt;
          &lt;h:outputText value=" the value entered by the users were"/&gt;
          &lt;table&gt;
              &lt;tr&gt;
                  &lt;td&gt;name:=&lt;h:outputText value="#{office.coupounname}"/&gt;&lt;/td&gt;
                  &lt;td&gt;code:&lt;h:outputText value="#{officebean.dialogvisible}"/&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/h:form&gt;
  &lt;/p:dialog&gt; 
  </code></pre>
  
  <p>now the bean class which contains the action for save button which sets the condition which makes the dialog visible</p>
  
  <pre><code>@ManagedBean(name="officebean")
  @RequestScoped
  public class Officebean {
      private List&lt;Office&gt;officeList;
      private Office office;
      private String Dialogvisible;
  
      public void save() {
          Dialogvisible="Bean";   
      }
  
      public List&lt;Office&gt; getOfficeList() {
          return officeList;
      }
  
      public void setOfficeList(List&lt;Office&gt; officeList) {
          this.officeList = officeList;
      }
  
      public Office getOffice() {
          return office;
      }
  
      public void setOffice(Office office) {
          this.office = office;
      }
  
      public String getDialogvisible() {
          return Dialogvisible;
      }
  
      public void setDialogvisible(String dialogvisible) {
          Dialogvisible = dialogvisible;
      }
  }
  </code></pre>
  
  <p>but dialog is not showing up when save button is clicked any held would be appreciated</p>