<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get document node in finishImpl() in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-document-node-in-finishimpl/m-p/83633#M56193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get access to the node you are doing the action for you need to call the setupContentAction action handler on BrowseBean i.e. your action config should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;action-listener&amp;gt;#{BrowseBean.setupContentAction}&amp;lt;/action-listener&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to do some other processing you can call a custom handler like you have currently but make sure you also call setupContentAction() on BrowseBean (this should be available as a member variable in your dialog bean).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have done this you can do the following within your dialog:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Node node = this.browseBean.getDocument();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the input fields you need to have getter and setter methods for all the fields on the JSP and value bind them to your bean. See org.alfresco.web.bean.wcm.CreateWebsiteWizard and /jsp/wcm/create-website-wizard/details.jsp as an example (ignore the fact it's a wizard the concept is the same, just change WizardManager.bean.xxx to DialogManager.bean.xxxx).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 12:59:46 GMT</pubDate>
    <dc:creator>gavinc</dc:creator>
    <dc:date>2007-07-20T12:59:46Z</dc:date>
    <item>
      <title>Get document node in finishImpl()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-document-node-in-finishimpl/m-p/83632#M56192</link>
      <description>Hello,I've been trying to implement a custom dialog.&amp;nbsp; I've been following the aspect dialog example in the SDK, and I've been able to add a menu item to the "more options" menu on a document, as well as set up the dialog.&amp;nbsp; When the OK button is pushed on the dialog, finishImpl is called in the java</description>
      <pubDate>Thu, 19 Jul 2007 20:25:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-document-node-in-finishimpl/m-p/83632#M56192</guid>
      <dc:creator>nparry</dc:creator>
      <dc:date>2007-07-19T20:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get document node in finishImpl()</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-document-node-in-finishimpl/m-p/83633#M56193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get access to the node you are doing the action for you need to call the setupContentAction action handler on BrowseBean i.e. your action config should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;action-listener&amp;gt;#{BrowseBean.setupContentAction}&amp;lt;/action-listener&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to do some other processing you can call a custom handler like you have currently but make sure you also call setupContentAction() on BrowseBean (this should be available as a member variable in your dialog bean).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have done this you can do the following within your dialog:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Node node = this.browseBean.getDocument();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the input fields you need to have getter and setter methods for all the fields on the JSP and value bind them to your bean. See org.alfresco.web.bean.wcm.CreateWebsiteWizard and /jsp/wcm/create-website-wizard/details.jsp as an example (ignore the fact it's a wizard the concept is the same, just change WizardManager.bean.xxx to DialogManager.bean.xxxx).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 12:59:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-document-node-in-finishimpl/m-p/83633#M56193</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2007-07-20T12:59:46Z</dc:date>
    </item>
  </channel>
</rss>

