title: XPages get current document with no data source on page - best coding technique
body: <p>I have a button on an XPage that has no data source.  I have read that I cannot use currentDocument to grab the current document:</p>
  
  <p><a href="http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.designer.domino.api.doc/r_wpdr_xsp_xspdocument_r.html" rel="nofollow">http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.designer.domino.api.doc%2Fr_wpdr_xsp_xspdocument_r.html</a></p>
  
  <p>I have read about using DominoDocumentData class, but not sure how to get that to grab the current document:</p>
  
  <p><a href="http://public.dhe.ibm.com/software/dw/lotus/Domino-Designer/JavaDocs/XPagesExtAPI/8.5.2/com/ibm/xsp/model/domino/DominoDocumentData.DocumentProperties.html" rel="nofollow">http://public.dhe.ibm.com/software/dw/lotus/Domino-Designer/JavaDocs/XPagesExtAPI/8.5.2/com/ibm/xsp/model/domino/DominoDocumentData.DocumentProperties.html</a></p>
  
  <p>What is best coding technique to grab the current document with no data source on the XPage?  Samples would be great...</p>
  
  <p>Thanks!
  Dan</p>