<?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: Multiple Actions? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82260#M55099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Opening new windows is done by the browser on client side, eg. using Javascript. The HttpServletResponse object cannot do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming your temp file must be created on the server side, you could consider adding an onclick script (&amp;lt;onclick&amp;gt;javascript:myhandler&amp;lt;/onclick&amp;gt;) to the action that sends an AJAX request to the server to do the temp file creation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make the request synchronous so that the url is opened (in a new window) only when the request is complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But all this is getting rather complicated, just to get the page in a new window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 06:20:34 GMT</pubDate>
    <dc:creator>frederick</dc:creator>
    <dc:date>2007-04-17T06:20:34Z</dc:date>
    <item>
      <title>Multiple Actions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82257#M55096</link>
      <description>Is it possible to configure multiple actions for a single action menu item? Currently, I have an href configured, but … A new requirement arose where I need to create a tmp xml file prior to launch my url in the href. Is it possible to run my java class or javascript prior to launch this URL? If I c</description>
      <pubDate>Sun, 15 Apr 2007 03:39:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82257#M55096</guid>
      <dc:creator>mchernecki</dc:creator>
      <dc:date>2007-04-15T03:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Actions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82258#M55097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't combine a HREF action with a regular action or an actionlistener, since these require the form to be submitted. A href is a request to a new page, so the form never gets submitted to the old page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To achieve both, I suggest you use an actionlistener which does the required logic, then forwards to the external url using something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//create temp xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HttpServletResponse response = (HttpServletResponse)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; facesContext.getExternalContext().getResponse();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;response.sendRedirect (url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;facesContext.responseComplete();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 06:24:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82258#M55097</guid>
      <dc:creator>frederick</dc:creator>
      <dc:date>2007-04-16T06:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Actions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82259#M55098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may work, but I need to target a new window with my redirect. How can I target a new window HttpServletResponse?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 16:40:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82259#M55098</guid>
      <dc:creator>mchernecki</dc:creator>
      <dc:date>2007-04-16T16:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Actions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82260#M55099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Opening new windows is done by the browser on client side, eg. using Javascript. The HttpServletResponse object cannot do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming your temp file must be created on the server side, you could consider adding an onclick script (&amp;lt;onclick&amp;gt;javascript:myhandler&amp;lt;/onclick&amp;gt;) to the action that sends an AJAX request to the server to do the temp file creation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make the request synchronous so that the url is opened (in a new window) only when the request is complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But all this is getting rather complicated, just to get the page in a new window.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 06:20:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82260#M55099</guid>
      <dc:creator>frederick</dc:creator>
      <dc:date>2007-04-17T06:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Actions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82261#M55100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the input Frederick. Although I didn't implement your suggestion, it made me think of this differently.&amp;nbsp; In the end I used only javascript, creating my xml files, then built my html template as a string and passing it as the return value of javascript. Then calling my javascript through the script command servlet on the current node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2007 01:56:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-actions/m-p/82261#M55100</guid>
      <dc:creator>mchernecki</dc:creator>
      <dc:date>2007-04-25T01:56:21Z</dc:date>
    </item>
  </channel>
</rss>

