Re: Stream/download files through portlet

2009-05-08 Thread Bruno Ledesma
ea why) removes this char, causing the problem. sorry for the "inconvenient" question... Bruno 2009/5/8 Bruno Ledesma > > Hello All! > > Im facing problems trying to Stream/download files through portlet. I also > used DynamicWebResource and a Resource link to se

Re: Stream/download files through portlet

2009-05-08 Thread Bruno Ledesma
Hello All! Im facing problems trying to Stream/download files through portlet. I also used DynamicWebResource and a Resource link to serve the Resource Data. On a simple Wicket application everything works fine, but when my war is deployed as a portlet into a Liferay 5 instance, it doesnt work

Re: Stream/download files through portlet

2008-10-15 Thread Rob Sonke
Thijs and I debugged the code together this morning because when he read this thread he was sure that both options (overriding setheaders and onclick) should work. After some debugging we found a bug in Liferay which could be easily fixed in our used version. The current (5.1.2) version has a l

Re: Stream/download files through portlet

2008-10-14 Thread Rob Sonke
Awesome! I was pretty sure that I tried that too but probably not in combination with other changes. I have overridden the onclick like this: ResourceLink link = new ResourceLink("downloadLink", resource) { /* (non-Javadoc) * @see org.apache.wicket.markup.html.link.ResourceLink#onC

Re: Stream/download files through portlet

2008-10-14 Thread Serkan Camurcuoglu
what I'm >>> doing wrong over here? >>> >>> Regards, >>> Rob >>> >>> ----------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>&g

Re: Stream/download files through portlet

2008-10-14 Thread Rob Sonke
No, too bad. The headers aren't picked up. Serkan Camurcuoglu wrote: For the DynamicWebResource case, doesn't overriding setHeaders() in DynamicWebResource and adding your http header in this method work? By the way, which portlet container are you working with? Rob Sonke wrote: Hi, W

Re: Stream/download files through portlet

2008-10-14 Thread Rob Sonke
Thanks for your answer. I think overriding the setHeaders will end up with the same result as with adding the filename through the constructor of DynamicWebResource but I'll try it in some minutes. We're using Liferay as the portal. Rob Serkan Camurcuoglu wrote: For the DynamicWebResource c

Re: Stream/download files through portlet

2008-10-14 Thread Serkan Camurcuoglu
PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Stream-download-files-through-portlet-tp19980617p19981070.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Stream/download files through portlet

2008-10-14 Thread Rob Sonke
Hi, We're using wicket for our portlets now for almost 3/4 year and it's great. We're following/try to help with the full implementation of jsr 286 in wicket too (Thijs and me, see other threads). But I'm having a problem now with offering files through a portlet. There are actually two optio