title: h:commandButton action is not getting called inside primefaces p:dialog
body: <p>I have a problem in my jsf application. I am calling action method by using <code>h:commandButton</code> inside <code>p:dialog</code> but it is not getting called. If i put <code>p:dialog</code> 
  outside <code>h:form</code> in which it was enclosed and put everything enclosed inside <code>h:form</code> in <code>p:dialog</code>, still it is not working. If i put button outside <code>p:dialog</code> it is 
  working fine.</p>
  
  <p>any help regarding this is very useful for me. Advanced thanks......</p>
  
  <hr>
  
  <p><strong>@maple_shaft</strong>  I have put appendToBody="true" but still it is not working.  </p>
  
  <p><strong>@Daniel</strong>  I have placed p:dialog outside main form and placed everything inside dialog in another form but it is not working-----i am using log4j for checking weather a method is getting called or not, here it is not printing anything.   If i place the command button outside p:dialog it is working perfectly.</p>