title: Dialog box close not working in primefaces
body: <p>I am opening dialog through </p>
  
  <pre><code>    public void openDialogRegionList() {        
      RequestContext.getCurrentInstance().openDialog("RegionList");       
  
  }
  </code></pre>
  
  <p>I have a commandLink onClick of that and i need to close dialog box.</p>
  
  <pre><code>    public void setId(ActionEvent event){
  
          UIComponent component = event.getComponent();
          String value = (String) component.getAttributes().get("value");         
          this.regionId = value;              
          RequestContext.getCurrentInstance().closeDialog("RegionList");      
  
  }
  </code></pre>
  
  <p>But the dialog box is not closing.
  Thanks in advance</p>