Solved in another way.

Instead of implementing it in a separate page, I 've replaced pagelink with 
actionlink and handled it in the same page class, for example :

Object onActionFromExport() {
                ...
                        
                return export();
        } 

StreamResponse export(){
}

Then the browser asked me to download or open the file :) ..


-----Original Message-----
From: Amr Mohamed Mahmoud Hassanien [mailto:amr.hassa...@ey.ae] 
Sent: 16 أكتوبر, 2011 09:38 ص
To: Tapestry users
Subject: RE: Uncaught exception when tried to return a StreamResponse

I did not see them, both were in the junk folder , me too surprised that the 
answer was not as fast as you used to :) ..
Tried what you said , changed a working page to export excel instead, and got 
the same error message...

Regards,


-----Original Message-----
From: Muhammad Gelbana [mailto:m.gelb...@gmail.com]
Sent: 16 أكتوبر, 2011 12:09 ص
To: Tapestry users
Subject: Re: Uncaught exception when tried to return a StreamResponse

You've got 2 replies, are you saying none worked for you ?
Why don't you try to just build another mock page for the same behavior with 
minimum tapestry customization efforts. May be your index page and see what 
happens. If it works, then you configured something wrong. If it doesn't, then 
it probably shouldn't in the first place !

2011/10/15 Amr Mohamed Mahmoud Hassanien <amr.hassa...@ey.ae>

> Hi,
>
>  No answer about this guys?
>
> Regards,
>
>
> -----Original Message-----
> From: Amr Mohamed Mahmoud Hassanien
> Sent: 13 أكتوبر, 2011 05:44 م
> To: Tapestry users
> Subject: Uncaught exception when tried to return a StreamResponse
>
> Hi Guys,
>
>        I want to export data in excel sheet, so I made a page class as 
> the following without a template file(.tml)
>
> public class ExportExcel {
>        .
>        .
>        .
>
>        StreamResponse OnActivate(){
>                List<User> users = userManager.getAllActiveUsers();  // 
> break point here never got hit
>                return export(users);
>        }
>
>        public StreamResponse export(List<List<String>> rows) {
>                // some logic to export the data in .xls
>        }
> }
>
> And this is the error I got:
> Page export/Excel did not generate any markup when rendered. This 
> could be because its template file could not be located, or because a 
> render phase method in the page prevented rendering.
>
>
> And I am using this page link.
> <t:pagelink t:page="export/excel"
>                      title="message:export-label"/>
>
> any idea what is the problem ?
>
> Thanks in Advance,
> Amr Hassanin
>
>
> ######################################################################
> ##########################################
> DISCLAIMER:
> This message is for the named person's use only. It may contain 
> confidential information, proprietary in nature or legally privileged 
> information. All trade secret, know how, formulas, researches, 
> database, software, codes diagrams, documentations, attachments, 
> voice, concepts and visual content are strictly protected by United 
> Arab Emirates Laws and Dubai Media Incorporated codes which will have 
> the right to take any legal action if you fail in doing the hereunder 
> steps. If you receive this message in error, please immediately DELETE 
> it and all copies of it from your system, DESTROY any hard copies of 
> it and destroy any soft and backup copy of it saved in any kind of 
> form under you possession and NOTIFY the sender.
> You must not, directly or indirectly, use, disclose, distribute, 
> print, or copy any part of this message (email) if you are not the 
> intended recipient.
>
> ######################################################################
> ##########################################
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


--
*Regards,*
*Muhammad Gelbana
Java Developer*

################################################################################################################
DISCLAIMER:
This message is for the named person's use only. It may contain confidential 
information, proprietary in nature or legally privileged information. All trade 
secret, know how, formulas, researches, database, software, codes diagrams, 
documentations, attachments, voice, concepts and visual content are strictly 
protected by United Arab Emirates Laws and Dubai Media Incorporated codes which 
will have the right to take any legal action if you fail in doing the hereunder 
steps. If you receive this message in error, please immediately DELETE it and 
all copies of it from your system, DESTROY any hard copies of it and destroy 
any soft and backup copy of it saved in any kind of form under you possession 
and NOTIFY the sender.  
You must not, directly or indirectly, use, disclose, distribute, print, or copy 
any part of this message (email) if you are not the intended recipient.
################################################################################################################

################################################################################################################
DISCLAIMER:
This message is for the named person's use only. It may contain confidential 
information, proprietary 
in nature or legally privileged information. All trade secret, know how, 
formulas, researches, database, 
software, codes diagrams, documentations, attachments, voice, concepts and 
visual content are strictly 
protected by United Arab Emirates Laws and Dubai Media Incorporated codes which 
will have the right to 
take any legal action if you fail in doing the hereunder steps. If you receive 
this message in error, 
please immediately DELETE it and all copies of it from your system, DESTROY any 
hard copies of it and 
destroy any soft and backup copy of it saved in any kind of form under you 
possession and NOTIFY the sender.  
You must not, directly or indirectly, use, disclose, distribute, print, or copy 
any part of this message (email) 
if you are not the intended recipient.
################################################################################################################

Reply via email to