<?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: what does dialog:close do and how can i intervene? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154669#M109101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All the logic for dialog:close is in org.alfresco.web.app.AlfrescoNavigationHandler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically when JSF sees the 'dialog:close' outcome it will navigate to the last page in the view stack for the dialog. Did you open your association property edit page with a dialog:xxxx action? If not, dialog:close won't know where to go back to, or will go back to the last page that launched a dialog, this may explain why you go back to the space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possiblity is that the dialog:close outcome has been overridden. If it looks something like "dialog:close:browse", then all dialogs are closed and JSF looks up and follows the navigation rule for the "browse" action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2008 22:03:06 GMT</pubDate>
    <dc:creator>gavinc</dc:creator>
    <dc:date>2008-02-04T22:03:06Z</dc:date>
    <item>
      <title>what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154668#M109100</link>
      <description>hi,i am currently changing the logic of how associations are handled so that a user can go from modifying a content's properties to modifying the association's properties with a single click.i did that by adding an action link instead of the path to the association, and gave the path as the link to</description>
      <pubDate>Thu, 31 Jan 2008 16:03:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154668#M109100</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-01-31T16:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154669#M109101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All the logic for dialog:close is in org.alfresco.web.app.AlfrescoNavigationHandler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically when JSF sees the 'dialog:close' outcome it will navigate to the last page in the view stack for the dialog. Did you open your association property edit page with a dialog:xxxx action? If not, dialog:close won't know where to go back to, or will go back to the last page that launched a dialog, this may explain why you go back to the space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another possiblity is that the dialog:close outcome has been overridden. If it looks something like "dialog:close:browse", then all dialogs are closed and JSF looks up and follows the navigation rule for the "browse" action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 22:03:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154669#M109101</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-04T22:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154670#M109102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thx, it helped me to understand, but it is not what you assumed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as i said, my action link acts exactly like the details_doc action, which action is dialog:showDocDetails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so i am launching a dialog action, but still the dialog:close does not take me back to where i wanted. dialog:close is not overridden, it is the action of the commandButton in document-details.jsp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so my actions are actually showDocDetails –&amp;gt; showDocDetails –&amp;gt; close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;before that i navigate to a space, and it is not a dialog action, but it still goes back there and not to the first doc details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can i see this view stack somehow so i can be sure? any other ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:03:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154670#M109102</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-02-05T10:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154671#M109103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok I see now!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes you can see what's going on by turning on debugging for the AlfrescoNavigationHandler i.e. add this to your log4j.properties file:&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;BR /&gt;&lt;SPAN&gt;What version of Alfresco are you using? If you're not using the latest HEAD code from SVN you will probably notice that the document details page in the&amp;nbsp; view stack only gets added once, even though you have effectively launched it twice. As a result when you click Close the dialog framework goes back to the space view and not the first docs details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the problems is that document details is still a "Simple Dialog" (see&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Dialog_Framework#Simple_Dialogs" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Dialog_Framework#Simple_Dialogs&lt;/A&gt;&lt;SPAN&gt;). So one possibility is to copy/paste the document details JSP and create a separate JSP and navigation rule for it. The dialog framework will then treat them as different dialogs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the latest HEAD code or nightly builds the document details page should now be a proper configured dialog which gives you more scope for overriding it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 13:44:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154671#M109103</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-05T13:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154672#M109104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;great that explains everything!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am not using the HEAD code, but alfresco 2.1, so you actually gave me a good solution with the copied jsp, but i was wondering about the better solution of configuring the doc details as a proper dialog, how complicated is that? where do i start?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 14:05:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154672#M109104</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-02-05T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154673#M109105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's generally not complicated to create/convert a proper dialog, you just define the configuration, see web-client-config-dialogs.xml for examples, define and implement a managed bean and strip out all the chrome from an existing JSP, just leaving the 'body' of the dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, in the case of the document details page, it was fairly central to a lot of functionality so it's not so easy to extract it out. To be honest I wasn't the one that converted it so I don't know all the details, I'd suggest getting the latest HEAD code and trace back the changes. As a starting point the document details dialog is defined in org.alfresco.web.bean.content.DocumentDetailsDialog&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 09:23:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154673#M109105</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-06T09:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154674#M109106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i didn't catch your drift about the chrome and body, but you have been a great help anyways, i will have a look at the HEAD code and see what i can come up with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot gavin!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 09:36:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154674#M109106</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-02-06T09:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154675#M109107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A "simple" dialog JSP has the tags for the whole page i.e. the whole page structure, header, shelf etc. etc. A "proper" dialog JSP only needs the UI that provides the functionality for the dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I was meaning removing all the "structure" code from the old JSP page to just leave the bit that actually represents what the dialog does.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 13:55:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154675#M109107</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-06T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154676#M109108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks gavin i got it now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sounds untrivial, i haven't had a chance to look at the HEAD code yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i did try the copied jsp solution, and suprisingly it does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i debuged AlfrescoNavigationHandler, and what i saw is that because it uses the NavigationHandler dispatchContext, even though the view stack is correctly handled, and i suspect it is the case even before i duplicated the jsp, it goes back to the docDetails of the node in the dispatchContext, and that node is the association and not it's "father". so it shows me the same screen twice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i will try to see if i can make it a "rule" and manipulate the dispatchContext on that dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please do help if you can think of something else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 09:37:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154676#M109108</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-02-07T09:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154677#M109109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're correct, you need to reset the context back to that of the content, this is not just the dispatch context but the context for the DocumentDetailsBean as well, you will also need to do whatever "BrowseBean.setupContentAction()" does as that "sets the scene" ready for the document details page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you've got a copy of the JSP now you can adjust the 'action' for the Close button to call a method on a managed bean. You can then set the context back to the correct state before the dialog closes. For example your close button will be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;h:commandButton id="close-btn" value="#{msg.close}" action="#{YourBean.yourMethod}" styleClass="wizardButton" /&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;and in your managed bean you can do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;public String yourMethod()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; // reset context&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return "dialog:close";&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;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 14:38:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154677#M109109</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-08T14:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154678#M109110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thx again, but unfortunately it didn't help…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried what you said in 2 ways:&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;h:commandButton id="close-btn" value="#{msg.close}" action="#{DocumentDetailsBean.handleAssociation}" styleClass="wizardButton" /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;and:&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;h:commandButton id="close-btn" value="#{msg.close}" action="dialog:close" actionListener="#{DocumentDetailsBean.handleAssociation}" styleClass="wizardButton" /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;while my method is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;public String handleAssociation(){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node curNode = getDocument();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;ChildAssociationRef&amp;gt; assocs = nodeService.getParentAssocs(curNode.getNodeRef());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(assocs.size() != 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new AlfrescoRuntimeException("handleAssociation: more than one parent for an association");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef parent = assocs.get(0).getChildRef();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browseBean.setupContentAction(parent.getId(), true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "dialog:close";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&lt;BR /&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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;(it differs a little on each variant but does the same)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;still, it doesn't work. is there a phase in the way that overrides what BrowseBean.setupContentAction() does? what i saw from debugging seems to do ok, except for the final result… :shock: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you can enlighten me some more i would appreciate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2008 13:15:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154678#M109110</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-02-10T13:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154679#M109111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm, I'm now at a loss for what to suggest &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you have tried is exactly what I was suggesting and I would expect to work. When you say the everything seems to do ok apart from the final result, what is the final result? Does the details dialog still show the details of the previous node?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 21:44:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154679#M109111</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-12T21:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154680#M109112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i found &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=9477&amp;amp;highlight=" rel="nofollow noopener noreferrer"&gt;this link&lt;/A&gt;&lt;SPAN&gt; as an answer to another post of mine, and it seems to talk about this problem exactly, haven't had a chance to go over it yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope it will help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 08:34:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154680#M109112</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-02-13T08:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154681#M109113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok i got it!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;silly me… &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i just gave the wrong node to the browseBean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the correct code is:&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;h:commandButton id="close-btn" value="#{msg.close}" action="#{DocumentDetailsBean.handleAssociation}" styleClass="wizardButton" /&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;together with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public String handleAssociation(){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Node curNode = getDocument();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;AssociationRef&amp;gt; assocs = nodeService.getSourceAssocs(curNode.getNodeRef(), CustomModel.PROP_SCENE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(assocs.size() != 1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new AlfrescoRuntimeException("handleAssociation: more than one parent for an association");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef parent = assocs.get(0).getSourceRef();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browseBean.setupContentAction(parent.getId(), true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "dialog:close";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; }&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;/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;thanks for all the help gavin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 15:22:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154681#M109113</guid>
      <dc:creator>netos</dc:creator>
      <dc:date>2008-02-13T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: what does dialog:close do and how can i intervene?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154682#M109114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your welcome, glad it's now working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 13:06:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/what-does-dialog-close-do-and-how-can-i-intervene/m-p/154682#M109114</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2008-02-14T13:06:50Z</dc:date>
    </item>
  </channel>
</rss>

