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

Reply via email to