myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Renzo Tomaselli <renzo.tomase...@tecnotp.it>
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">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<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>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
var dummyForm = document.forms[target];<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
dummyForm.elements['jscook_action'].value = link;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
dummyForm.submit();<br>
<br>
simply by:<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
submitForm(target,1, {jscook_action: link})<br>
<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>
<br>
-- Renzo<br>
<br>
<br>
Renzo Tomaselli wrote:
<blockquote cite="mid:47B42987.1050902@tecnotp.it" 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>
  <br>
-- Renzo<br>
  <br>
Matthias Wessendorf wrote:
  <blockquote
 cite="mid:71235db40802140338u2ebfd4e4r7775505952aa84d2@mail.gmail.com"
 type="cite">
    <pre wrap="">can you create an issue + a little simple page snippet ?

-M

On Thu, Feb 14, 2008 at 12:34 PM, Renzo Tomaselli
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="mailto:renzo.tomaselli@tecnotp.it">&lt;renzo.tomaselli@tecnotp.it&gt;</a>
wrote:
  </pre>
    <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
 component.
 After performing a download action (even canceled), I noticed that any
 following jscookMenu item action leads to the download action again and
 again,
 until next page refresh.

 -- Renzo



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


  </pre>
  </blockquote>
</blockquote>
</body>
</html>

Mime
View raw message