myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <>
Subject Re: [Trinidad] tr:fileDownloadActionListener non working with t:jscookMenu
Date Thu, 14 Feb 2008 12:36:11 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Ok, here is a solution.<br>
Myfaces adds a MyFacesHack.js to the page for the purpose of adapting
jscookMenu to JSF.<br>
Here a menu action goes straightaway to form.submit. This doesn't
comply with tr:fileDownloadActionListener, don't know why.<br>
But replacing at line #28:<br>
var dummyForm = document.forms[target];<br>
dummyForm.elements['jscook_action'].value = link;<br>
simply by:<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
submitForm(target,1, {jscook_action: link})<br>
seems to solve the issue, since we go through Trinidad stuff.<br>
However I don't know how Myfaces+Trinidad+Tomahawk fit this puzzle (who
does what).<br>
-- Renzo<br>
Renzo Tomaselli wrote:
<blockquote cite="" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Yes I will. I'm debugging the involved js machinery to find the issue,
I guess jscookMenu submitting skips Trinidad internals.<br>
-- Renzo<br>
Matthias Wessendorf wrote:
    <pre wrap="">can you create an issue + a little simple page snippet ?


On Thu, Feb 14, 2008 at 12:34 PM, Renzo Tomaselli
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
    <blockquote type="cite">
      <pre wrap="">Hi, I have another issue with  tr:fileDownloadActionListener.
 I'm using Tomahawk jscookMenu since Trinidad misses any drop-down menu
 After performing a download action (even canceled), I noticed that any
 following jscookMenu item action leads to the download action again and
 until next page refresh.

 -- Renzo

    <pre wrap=""><!---->


View raw message