<?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: Wizard - browseBean.getDocument returns null... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/wizard-browsebean-getdocument-returns-null/m-p/13059#M5440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As you've guessed, you need to setup some context for your wizard. The best way to do this is using an actionListener on the action definition that launches your wizard, so something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;action-listener&amp;gt;#{BrowseBean.setupContentAction}&amp;lt;/action-listener&amp;gt;&lt;BR /&gt;&amp;lt;params&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;param name="id"&amp;gt;#{actionContext.id}&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;lt;/params&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This config assumes that your action is within a data row that has an "id" column available (that should already be correct as your action is part of the document_browse_menu group).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;the return value is null! EXCEPT if I first view the details of that document then go back and choose that action on the menu.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;This is because the Details page uses exactly the code you see above to setup the Node context for the action page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 09:02:41 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2006-07-25T09:02:41Z</dc:date>
    <item>
      <title>Wizard - browseBean.getDocument returns null...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wizard-browsebean-getdocument-returns-null/m-p/13058#M5439</link>
      <description>Hi,I am developing a wizard similar in functionality to the invite content users wizard, but I am following the guidelines in the wiki.I have it somewhat working with a problem I can't get past.&amp;nbsp;&amp;nbsp; I have added the action to following section… so it shows in the additional actions menu.&amp;lt;action-gro</description>
      <pubDate>Tue, 25 Jul 2006 04:56:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wizard-browsebean-getdocument-returns-null/m-p/13058#M5439</guid>
      <dc:creator>csiege</dc:creator>
      <dc:date>2006-07-25T04:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Wizard - browseBean.getDocument returns null...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wizard-browsebean-getdocument-returns-null/m-p/13059#M5440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As you've guessed, you need to setup some context for your wizard. The best way to do this is using an actionListener on the action definition that launches your wizard, so something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;action-listener&amp;gt;#{BrowseBean.setupContentAction}&amp;lt;/action-listener&amp;gt;&lt;BR /&gt;&amp;lt;params&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;param name="id"&amp;gt;#{actionContext.id}&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;lt;/params&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This config assumes that your action is within a data row that has an "id" column available (that should already be correct as your action is part of the document_browse_menu group).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;the return value is null! EXCEPT if I first view the details of that document then go back and choose that action on the menu.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;This is because the Details page uses exactly the code you see above to setup the Node context for the action page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 09:02:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wizard-browsebean-getdocument-returns-null/m-p/13059#M5440</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-07-25T09:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Wizard - browseBean.getDocument returns null...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wizard-browsebean-getdocument-returns-null/m-p/13060#M5441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It worked! Perfect!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick reponse. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 16:23:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wizard-browsebean-getdocument-returns-null/m-p/13060#M5441</guid>
      <dc:creator>csiege</dc:creator>
      <dc:date>2006-07-25T16:23:56Z</dc:date>
    </item>
  </channel>
</rss>

