<?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: Custom Wizard Finish in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166271#M119888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for looking into this. Starting from your pointer….I figured out the issue. Thank you. Here is what i did:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- From the logs found that the outcome is null is logged from the finish method and not the finishImpl() method. My wizardmanager class was not overriding the finish method so i did override and set the outcome to wizard:close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After doing the above I found that hitting the Finish button was taking me back to the dashboard screen…but…i found that the finishImpl() method was not being executed…hmm…another problem…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the source code i found that there is a field in BaseDialogBean called isFinished that is used to avoid multiple clicks on the Finish button….and only when this field is false the transaction is processed….this field is initially set to false; once the Finish button is clicked the first time this is set to true…this field is reset in the init method…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in my custom-wizard's overriding init() method i was not calling the super.init()&amp;nbsp; and so this field isFinished was not getting reset and that was causing all the issue…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so its important to call the super.init() from the overridden init() method or reset this field in the overriding init() method…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again gavinc for your suggestions….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Venk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2008 22:24:12 GMT</pubDate>
    <dc:creator>venkatvj</dc:creator>
    <dc:date>2008-03-19T22:24:12Z</dc:date>
    <item>
      <title>Custom Wizard Finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166267#M119884</link>
      <description>Hi All,I am facing a strange problem. I have developed a custom wizard extending BaseContentWizard. My wizard has only one step. It has a simple form that captures some information; in the Finish button handler (finishImpl method) i save the user input as an xml file in the user's sandbox. The wizar</description>
      <pubDate>Sat, 15 Mar 2008 14:19:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166267#M119884</guid>
      <dc:creator>venkatvj</dc:creator>
      <dc:date>2008-03-15T14:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Wizard Finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166268#M119885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you turn on debugging for the AlfrescoNavigationHandler and post the output for the whole interaction you describe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can just uncomment the following line in log4j.properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;#log4j.logger.org.alfresco.web.app.AlfrescoNavigationHandler=debug&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 17:15:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166268#M119885</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-03-17T17:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Wizard Finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166269#M119886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for looking into this Gavinc. Here is the output from the NavigationHandler. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:07,046 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=#{LoginBean.login}, outcome=myalfresco)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:07,046 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/login.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:07,046 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No dispatch context found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:07,046 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'myalfresco' to original navigation handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:07,046 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=wizard:XYZ_Press_Release_Create_Wizard)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/dashboards/container.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Opening wizard 'XYZ_Press_Release_Create_Wizard'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using dialog container: /jsp/XYZ/dialog/container.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using wizard container: /jsp/XYZ/wizardcontainer.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Pushed item to view stack: /jsp/dashboards/container.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Looking up wizard in global config&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:23,765 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found config for wizard 'XYZ_Press_Release_Create_Wizard': org.alfresco.web.config.WizardsConfigElement$WizardConfig@6c44c5 (name=XYZ_Press_Release_Create_Wizard managed-bean=XYZPressReleaseCreateWizard actions-config-id=more_actions_menu icon=/images/icons/new_rule_large.gif title=XYZ Press Release Wizard titleId=null description= descriptionId=null errorMsgId=error_run_action_wizard)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:25,406 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using wizard container: /jsp/XYZ/wizardcontainer.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:25,406 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: [/jsp/dashboards/container.jsp]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:37,796 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=#{WizardManager.finish}, outcome=wizard:close)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:37,796 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/XYZ/wizardcontainer.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:37,796 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Closing wizard, going back to previous page&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:37,796 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Popped item from the top of the view stack: /jsp/dashboards/container.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:37,796 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=null, outcome=wizard:XYZ_Press_Release_Create_Wizard)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/dashboards/container.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Opening wizard 'XYZ_Press_Release_Create_Wizard'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using dialog container: /jsp/XYZ/dialog/container.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using wizard container: /jsp/XYZ/wizardcontainer.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Pushed item to view stack: /jsp/dashboards/container.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Looking up wizard in global config&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Found config for wizard 'XYZ_Press_Release_Create_Wizard': org.alfresco.web.config.WizardsConfigElement$WizardConfig@6c44c5 (name=XYZ_Press_Release_Create_Wizard managed-bean=XYZPressReleaseCreateWizard actions-config-id=more_actions_menu icon=/images/icons/new_rule_large.gif title=XYZ Press Release Wizard titleId=null description= descriptionId=null errorMsgId=error_run_action_wizard)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Using wizard container: /jsp/XYZ/wizardcontainer.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:49:52,625 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: [/jsp/dashboards/container.jsp]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:11,156 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=#{WizardManager.finish}, outcome=null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:11,156 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/XYZ/wizardcontainer.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:11,156 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No dispatch context found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:11,156 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'null' to original navigation handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:11,156 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: [/jsp/dashboards/container.jsp]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:16,906 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=#{WizardManager.finish}, outcome=null)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:16,906 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Current view id: /jsp/XYZ/wizardcontainer.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:16,906 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] No dispatch context found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:16,906 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] Passing outcome 'null' to original navigation handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;17:50:16,906 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] view stack: [/jsp/dashboards/container.jsp]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 12:30:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166269#M119886</guid>
      <dc:creator>venkatvj</dc:creator>
      <dc:date>2008-03-18T12:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Wizard Finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166270#M119887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The key is the following line in the debug output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;17:50:11,156 DEBUG [org.alfresco.web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=#{WizardManager.finish}, outcome=null)&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;This shows that for some reason your wizard is returning a null outcome the 2nd time, check your logic in your finishImpl and ensure that the outcome being returned is "wizard:close".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 21:24:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166270#M119887</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-03-18T21:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Wizard Finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166271#M119888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for looking into this. Starting from your pointer….I figured out the issue. Thank you. Here is what i did:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- From the logs found that the outcome is null is logged from the finish method and not the finishImpl() method. My wizardmanager class was not overriding the finish method so i did override and set the outcome to wizard:close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After doing the above I found that hitting the Finish button was taking me back to the dashboard screen…but…i found that the finishImpl() method was not being executed…hmm…another problem…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the source code i found that there is a field in BaseDialogBean called isFinished that is used to avoid multiple clicks on the Finish button….and only when this field is false the transaction is processed….this field is initially set to false; once the Finish button is clicked the first time this is set to true…this field is reset in the init method…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and in my custom-wizard's overriding init() method i was not calling the super.init()&amp;nbsp; and so this field isFinished was not getting reset and that was causing all the issue…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so its important to call the super.init() from the overridden init() method or reset this field in the overriding init() method…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again gavinc for your suggestions….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Venk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 22:24:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-wizard-finish/m-p/166271#M119888</guid>
      <dc:creator>venkatvj</dc:creator>
      <dc:date>2008-03-19T22:24:12Z</dc:date>
    </item>
  </channel>
</rss>

