Found out the problem :D
All my downloads are done by Internet download manager. My problem was
actually similar to what 'Lance' said. Browser sends one request and 2 more
from IDM(thats makes it three times). Anyways, I have disabled IDM and went
with normal downloader that came out with the brow
"
To: "Tapestry users"
Sent: Monday, 28 November, 2011 2:38:40 PM
Subject: Re: fault found
then it is caused by some portion of the code that you did not show.
I tried it out and the onSubmit method is only called once, as expected.
jsp won't help you here.
Am 28.11.2011 um 1
then it is caused by some portion of the code that you did not show.
I tried it out and the onSubmit method is only called once, as expected.
jsp won't help you here.
Am 28.11.2011 um 12:18 schrieb csckid:
> I tried with smaller project that has only hibernate and spring integrated
> and no cu
This sounds like an IE bug I encountered years ago. Are you using an old
version of IE (5 perhaps). From memory, IE sends two requests for the PDF
and then Acrobat sends one itself.
My solution at the time (I don't have access to the code) involved ignoring
two of the requests and only returning c
I tried with smaller project that has only hibernate and spring integrated
and no custom filters. It didn't work still.
Is there any other way to download the file beside this procedure? Can I
link it through jsp? If that is possible can you please show me the way.
--
View this message in contex
Should be called only once if you have this code in a fresh project.
Are you sure there are no such things like custom filters that might process
things more than once?
Am 27.11.2011 um 12:53 schrieb csckid:
> Smaller sample:
>
> *Contact.tml*
> xmlns:t="http://tapestry.apache.org/schem
Smaller sample:
*Contact.tml*
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:parameter">
Contact com.kids.crm ...
*Contact.java*
package com.kids.crm.pages;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
impor
*Contact.java*
import java.io.InputStream;
import org.apache.tapestry5.StreamResponse;
import com.kids.crm.reports.pdf.PDFGenerator;
import com.kids.crm.reports.pdf.PDFStreamResponse;
public class Contact
{
public StreamResponse onSubmit() {
// Create PDF
InputStream i
Show us your code and we can tell you what's wrong!
Am 27.11.2011 um 08:41 schrieb csckid:
> I tried the following example to generate pdf file and return to user
> browser.
> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF
>
> The problem I found is method public StreamResponse