You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Pablo Scagno <ps...@hotmail.com> on 2008/10/10 13:49:19 UTC
Fw: DownloadLink, can anyone help me?
FYI
--------------------------------------------------
From: "Pablo Scagno" <ps...@hotmail.com>
Sent: Thursday, October 09, 2008 5:54 PM
To: <us...@wicket.apache.org>
Subject: DownloadLink
> Hi,
> I was trying to use DownloadLink but for some reason I couldn't make it
> work.
> I'm trying to insert the link in a grid, but when I test the application
> and I click the link, an error page appears "The webPage cannot be found"
>
> this url appears in the page
> http://..../?wicket:interface=:7:table:rows:1:cells:2:cell:download::ILinkListener::
>
> here Is the code where I create the link
>
> public class ActionPanel extends Panel{
> public ActionPanel(String id, IModel<Document> model){
> super(id, model);
> try {
> File file = ((Document)model.getObject()).getOriginalFile();
> IModel<File> fileModel = new Model<File>();
> fileModel.setObject(file);
> add(new DownloadLink("download",fileModel));
> } catch (FileNotFoundException e) {
> e.printStackTrace();
> }
> }
> }
>
> I've debug the app and I saw that the file was loaded, and the link was
> created without any problem. Can anyone tell me if need anything else to
> make it works?
>
> Thanks in advance
>
> Pablo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: DownloadLink, can anyone help me?
Posted by Pablo Scagno <ps...@hotmail.com>.
Maybe, I can have a link like this "http://www........com/files/mydoc.pdf",
but I don't know how to make that folder visible...
--------------------------------------------------
From: "Pablo Scagno" <ps...@hotmail.com>
Sent: Friday, October 10, 2008 10:45 AM
To: <us...@wicket.apache.org>
Subject: Re: DownloadLink, can anyone help me?
> Hi Steffen, Can you give me another idea to do this? Thanks
> Pablo
>
> --------------------------------------------------
> From: "Steffen Fritzsche" <fr...@scriptroom.de>
> Sent: Friday, October 10, 2008 10:14 AM
> To: <us...@wicket.apache.org>
> Subject: Re: DownloadLink, can anyone help me?
>
>> We've got problems with the DownloadLink, too. They work fine in Firefox
>> and Webkit-based browsers. However they do not work in IE6/7. IE
>> complains about the URL, it might be the same message but I'm not in
>> front of the system right now to verify this.
>>
>> Steffen
>>
>>
>> Am 10.10.2008 um 15:07 schrieb Serkan Camurcuoglu:
>>
>>> actually I have no experience with this but just trying to help.. what
>>> happens when you copy the download link url and paste it into a new
>>> browser tab, do you get a 404 error? which path does the error specify?
>>> is it different from the download link url? do you see any exception in
>>> the logs?
>>>
>>>
>>>
>>> Pablo Scagno wrote:
>>>> First of all thanks for you help,
>>>> Regarding my problem, yes, I debug It and the code executed without
>>>> any problem, it calls the super method.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --------------------------------------------------
>>>> From: "Serkan Camurcuoglu" <se...@telenity.com>
>>>> Sent: Friday, October 10, 2008 9:34 AM
>>>> To: <us...@wicket.apache.org>
>>>> Subject: Re: Fw: DownloadLink, can anyone help me?
>>>>
>>>>> do you know whether the request reaches your downloadlink? for
>>>>> example, you could check it by using:
>>>>>
>>>>> add(new DownloadLink("download", fileModel) {
>>>>> @Override
>>>>> public void onClick() {
>>>>> System.out.println("onClick of download link called!");
>>>>> try {
>>>>> super.onClick();
>>>>> System.out.println("super onClick was successful");
>>>>> } catch (Throwable t) {
>>>>> t.printStackTrace();
>>>>> }
>>>>> }
>>>>> });
>>>>>
>>>>> or you could debug it of course..
>>>>>
>>>>>
>>>>>
>>>>> Pablo Scagno wrote:
>>>>>> FYI
>>>>>> --------------------------------------------------
>>>>>> From: "Pablo Scagno" <ps...@hotmail.com>
>>>>>> Sent: Thursday, October 09, 2008 5:54 PM
>>>>>> To: <us...@wicket.apache.org>
>>>>>> Subject: DownloadLink
>>>>>>
>>>>>>> Hi,
>>>>>>> I was trying to use DownloadLink but for some reason I couldn't
>>>>>>> make it work.
>>>>>>> I'm trying to insert the link in a grid, but when I test the
>>>>>>> application and I click the link, an error page appears "The
>>>>>>> webPage cannot be found"
>>>>>>>
>>>>>>> this url appears in the page
>>>>>>> http://..../?wicket:interface=:7:table:rows:1:cells:
>>>>>>> 2:cell:download::ILinkListener::
>>>>>>>
>>>>>>> here Is the code where I create the link
>>>>>>>
>>>>>>> public class ActionPanel extends Panel{
>>>>>>> public ActionPanel(String id, IModel<Document> model){
>>>>>>> super(id, model);
>>>>>>> try {
>>>>>>> File file =
>>>>>>> ((Document)model.getObject()).getOriginalFile();
>>>>>>> IModel<File> fileModel = new Model<File>();
>>>>>>> fileModel.setObject(file);
>>>>>>> add(new DownloadLink("download",fileModel));
>>>>>>> } catch (FileNotFoundException e) {
>>>>>>> e.printStackTrace();
>>>>>>> }
>>>>>>> }
>>>>>>> }
>>>>>>>
>>>>>>> I've debug the app and I saw that the file was loaded, and the link
>>>>>>> was created without any problem. Can anyone tell me if need
>>>>>>> anything else to make it works?
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>>
>>>>>>> Pablo
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: DownloadLink, can anyone help me?
Posted by Pablo Scagno <ps...@hotmail.com>.
Hi Steffen, Can you give me another idea to do this?
Thanks
Pablo
--------------------------------------------------
From: "Steffen Fritzsche" <fr...@scriptroom.de>
Sent: Friday, October 10, 2008 10:14 AM
To: <us...@wicket.apache.org>
Subject: Re: DownloadLink, can anyone help me?
> We've got problems with the DownloadLink, too. They work fine in
> Firefox and Webkit-based browsers. However they do not work in IE6/7.
> IE complains about the URL, it might be the same message but I'm not
> in front of the system right now to verify this.
>
> Steffen
>
>
> Am 10.10.2008 um 15:07 schrieb Serkan Camurcuoglu:
>
>> actually I have no experience with this but just trying to help..
>> what happens when you copy the download link url and paste it into a
>> new browser tab, do you get a 404 error? which path does the error
>> specify? is it different from the download link url? do you see any
>> exception in the logs?
>>
>>
>>
>> Pablo Scagno wrote:
>>> First of all thanks for you help,
>>> Regarding my problem, yes, I debug It and the code executed without
>>> any problem, it calls the super method.
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------
>>> From: "Serkan Camurcuoglu" <se...@telenity.com>
>>> Sent: Friday, October 10, 2008 9:34 AM
>>> To: <us...@wicket.apache.org>
>>> Subject: Re: Fw: DownloadLink, can anyone help me?
>>>
>>>> do you know whether the request reaches your downloadlink? for
>>>> example, you could check it by using:
>>>>
>>>> add(new DownloadLink("download", fileModel) {
>>>> @Override
>>>> public void onClick() {
>>>> System.out.println("onClick of download link called!");
>>>> try {
>>>> super.onClick();
>>>> System.out.println("super onClick was successful");
>>>> } catch (Throwable t) {
>>>> t.printStackTrace();
>>>> }
>>>> }
>>>> });
>>>>
>>>> or you could debug it of course..
>>>>
>>>>
>>>>
>>>> Pablo Scagno wrote:
>>>>> FYI
>>>>> --------------------------------------------------
>>>>> From: "Pablo Scagno" <ps...@hotmail.com>
>>>>> Sent: Thursday, October 09, 2008 5:54 PM
>>>>> To: <us...@wicket.apache.org>
>>>>> Subject: DownloadLink
>>>>>
>>>>>> Hi,
>>>>>> I was trying to use DownloadLink but for some reason I couldn't
>>>>>> make it work.
>>>>>> I'm trying to insert the link in a grid, but when I test the
>>>>>> application and I click the link, an error page appears "The
>>>>>> webPage cannot be found"
>>>>>>
>>>>>> this url appears in the page
>>>>>> http://..../?wicket:interface=:7:table:rows:1:cells:
>>>>>> 2:cell:download::ILinkListener::
>>>>>>
>>>>>> here Is the code where I create the link
>>>>>>
>>>>>> public class ActionPanel extends Panel{
>>>>>> public ActionPanel(String id, IModel<Document> model){
>>>>>> super(id, model);
>>>>>> try {
>>>>>> File file =
>>>>>> ((Document)model.getObject()).getOriginalFile();
>>>>>> IModel<File> fileModel = new Model<File>();
>>>>>> fileModel.setObject(file);
>>>>>> add(new DownloadLink("download",fileModel));
>>>>>> } catch (FileNotFoundException e) {
>>>>>> e.printStackTrace();
>>>>>> }
>>>>>> }
>>>>>> }
>>>>>>
>>>>>> I've debug the app and I saw that the file was loaded, and the
>>>>>> link was created without any problem. Can anyone tell me if need
>>>>>> anything else to make it works?
>>>>>>
>>>>>> Thanks in advance
>>>>>>
>>>>>> Pablo
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: DownloadLink, can anyone help me?
Posted by Steffen Fritzsche <fr...@scriptroom.de>.
We've got problems with the DownloadLink, too. They work fine in
Firefox and Webkit-based browsers. However they do not work in IE6/7.
IE complains about the URL, it might be the same message but I'm not
in front of the system right now to verify this.
Steffen
Am 10.10.2008 um 15:07 schrieb Serkan Camurcuoglu:
> actually I have no experience with this but just trying to help..
> what happens when you copy the download link url and paste it into a
> new browser tab, do you get a 404 error? which path does the error
> specify? is it different from the download link url? do you see any
> exception in the logs?
>
>
>
> Pablo Scagno wrote:
>> First of all thanks for you help,
>> Regarding my problem, yes, I debug It and the code executed without
>> any problem, it calls the super method.
>>
>>
>>
>>
>>
>> --------------------------------------------------
>> From: "Serkan Camurcuoglu" <se...@telenity.com>
>> Sent: Friday, October 10, 2008 9:34 AM
>> To: <us...@wicket.apache.org>
>> Subject: Re: Fw: DownloadLink, can anyone help me?
>>
>>> do you know whether the request reaches your downloadlink? for
>>> example, you could check it by using:
>>>
>>> add(new DownloadLink("download", fileModel) {
>>> @Override
>>> public void onClick() {
>>> System.out.println("onClick of download link called!");
>>> try {
>>> super.onClick();
>>> System.out.println("super onClick was successful");
>>> } catch (Throwable t) {
>>> t.printStackTrace();
>>> }
>>> }
>>> });
>>>
>>> or you could debug it of course..
>>>
>>>
>>>
>>> Pablo Scagno wrote:
>>>> FYI
>>>> --------------------------------------------------
>>>> From: "Pablo Scagno" <ps...@hotmail.com>
>>>> Sent: Thursday, October 09, 2008 5:54 PM
>>>> To: <us...@wicket.apache.org>
>>>> Subject: DownloadLink
>>>>
>>>>> Hi,
>>>>> I was trying to use DownloadLink but for some reason I couldn't
>>>>> make it work.
>>>>> I'm trying to insert the link in a grid, but when I test the
>>>>> application and I click the link, an error page appears "The
>>>>> webPage cannot be found"
>>>>>
>>>>> this url appears in the page
>>>>> http://..../?wicket:interface=:7:table:rows:1:cells:
>>>>> 2:cell:download::ILinkListener::
>>>>>
>>>>> here Is the code where I create the link
>>>>>
>>>>> public class ActionPanel extends Panel{
>>>>> public ActionPanel(String id, IModel<Document> model){
>>>>> super(id, model);
>>>>> try {
>>>>> File file =
>>>>> ((Document)model.getObject()).getOriginalFile();
>>>>> IModel<File> fileModel = new Model<File>();
>>>>> fileModel.setObject(file);
>>>>> add(new DownloadLink("download",fileModel));
>>>>> } catch (FileNotFoundException e) {
>>>>> e.printStackTrace();
>>>>> }
>>>>> }
>>>>> }
>>>>>
>>>>> I've debug the app and I saw that the file was loaded, and the
>>>>> link was created without any problem. Can anyone tell me if need
>>>>> anything else to make it works?
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Pablo
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Fw: DownloadLink, can anyone help me?
Posted by Serkan Camurcuoglu <se...@telenity.com>.
actually I have no experience with this but just trying to help.. what
happens when you copy the download link url and paste it into a new
browser tab, do you get a 404 error? which path does the error specify?
is it different from the download link url? do you see any exception in
the logs?
Pablo Scagno wrote:
> First of all thanks for you help,
> Regarding my problem, yes, I debug It and the code executed without
> any problem, it calls the super method.
>
>
>
>
>
> --------------------------------------------------
> From: "Serkan Camurcuoglu" <se...@telenity.com>
> Sent: Friday, October 10, 2008 9:34 AM
> To: <us...@wicket.apache.org>
> Subject: Re: Fw: DownloadLink, can anyone help me?
>
>> do you know whether the request reaches your downloadlink? for
>> example, you could check it by using:
>>
>> add(new DownloadLink("download", fileModel) {
>> @Override
>> public void onClick() {
>> System.out.println("onClick of download link called!");
>> try {
>> super.onClick();
>> System.out.println("super onClick was successful");
>> } catch (Throwable t) {
>> t.printStackTrace();
>> }
>> }
>> });
>>
>> or you could debug it of course..
>>
>>
>>
>> Pablo Scagno wrote:
>>> FYI
>>> --------------------------------------------------
>>> From: "Pablo Scagno" <ps...@hotmail.com>
>>> Sent: Thursday, October 09, 2008 5:54 PM
>>> To: <us...@wicket.apache.org>
>>> Subject: DownloadLink
>>>
>>>> Hi,
>>>> I was trying to use DownloadLink but for some reason I couldn't
>>>> make it work.
>>>> I'm trying to insert the link in a grid, but when I test the
>>>> application and I click the link, an error page appears "The
>>>> webPage cannot be found"
>>>>
>>>> this url appears in the page
>>>> http://..../?wicket:interface=:7:table:rows:1:cells:2:cell:download::ILinkListener::
>>>>
>>>>
>>>> here Is the code where I create the link
>>>>
>>>> public class ActionPanel extends Panel{
>>>> public ActionPanel(String id, IModel<Document> model){
>>>> super(id, model);
>>>> try {
>>>> File file =
>>>> ((Document)model.getObject()).getOriginalFile();
>>>> IModel<File> fileModel = new Model<File>();
>>>> fileModel.setObject(file);
>>>> add(new DownloadLink("download",fileModel));
>>>> } catch (FileNotFoundException e) {
>>>> e.printStackTrace();
>>>> }
>>>> }
>>>> }
>>>>
>>>> I've debug the app and I saw that the file was loaded, and the link
>>>> was created without any problem. Can anyone tell me if need
>>>> anything else to make it works?
>>>>
>>>> Thanks in advance
>>>>
>>>> Pablo
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Fw: DownloadLink, can anyone help me?
Posted by Pablo Scagno <ps...@hotmail.com>.
sorry about that...
--------------------------------------------------
From: "Pablo Scagno" <ps...@hotmail.com>
Sent: Friday, October 10, 2008 10:34 AM
To: <us...@wicket.apache.org>
Subject: Re: Fw: DownloadLink, can anyone help me?
> Pancu, dame los datos del hotel, quizas salga hoy al mediodia pra alla
> quiero ver si hay hotel
>
> --------------------------------------------------
> From: "Pablo Scagno" <ps...@hotmail.com>
> Sent: Friday, October 10, 2008 9:48 AM
> To: <us...@wicket.apache.org>
> Subject: Re: Fw: DownloadLink, can anyone help me?
>
>> First of all thanks for you help,
>> Regarding my problem, yes, I debug It and the code executed without any
>> problem, it calls the super method.
>>
>>
>>
>>
>>
>> --------------------------------------------------
>> From: "Serkan Camurcuoglu" <se...@telenity.com>
>> Sent: Friday, October 10, 2008 9:34 AM
>> To: <us...@wicket.apache.org>
>> Subject: Re: Fw: DownloadLink, can anyone help me?
>>
>>> do you know whether the request reaches your downloadlink? for example,
>>> you could check it by using:
>>>
>>> add(new DownloadLink("download", fileModel) {
>>> @Override
>>> public void onClick() {
>>> System.out.println("onClick of download link called!");
>>> try {
>>> super.onClick();
>>> System.out.println("super onClick was successful");
>>> } catch (Throwable t) {
>>> t.printStackTrace();
>>> }
>>> }
>>> });
>>>
>>> or you could debug it of course..
>>>
>>>
>>>
>>> Pablo Scagno wrote:
>>>> FYI
>>>> --------------------------------------------------
>>>> From: "Pablo Scagno" <ps...@hotmail.com>
>>>> Sent: Thursday, October 09, 2008 5:54 PM
>>>> To: <us...@wicket.apache.org>
>>>> Subject: DownloadLink
>>>>
>>>>> Hi,
>>>>> I was trying to use DownloadLink but for some reason I couldn't make
>>>>> it work.
>>>>> I'm trying to insert the link in a grid, but when I test the
>>>>> application and I click the link, an error page appears "The webPage
>>>>> cannot be found"
>>>>>
>>>>> this url appears in the page
>>>>> http://..../?wicket:interface=:7:table:rows:1:cells:2:cell:download::ILinkListener::
>>>>>
>>>>> here Is the code where I create the link
>>>>>
>>>>> public class ActionPanel extends Panel{
>>>>> public ActionPanel(String id, IModel<Document> model){
>>>>> super(id, model);
>>>>> try {
>>>>> File file =
>>>>> ((Document)model.getObject()).getOriginalFile();
>>>>> IModel<File> fileModel = new Model<File>();
>>>>> fileModel.setObject(file);
>>>>> add(new DownloadLink("download",fileModel));
>>>>> } catch (FileNotFoundException e) {
>>>>> e.printStackTrace();
>>>>> }
>>>>> }
>>>>> }
>>>>>
>>>>> I've debug the app and I saw that the file was loaded, and the link
>>>>> was created without any problem. Can anyone tell me if need anything
>>>>> else to make it works?
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Pablo
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Fw: DownloadLink, can anyone help me?
Posted by Pablo Scagno <ps...@hotmail.com>.
Pancu, dame los datos del hotel, quizas salga hoy al mediodia pra alla
quiero ver si hay hotel
--------------------------------------------------
From: "Pablo Scagno" <ps...@hotmail.com>
Sent: Friday, October 10, 2008 9:48 AM
To: <us...@wicket.apache.org>
Subject: Re: Fw: DownloadLink, can anyone help me?
> First of all thanks for you help,
> Regarding my problem, yes, I debug It and the code executed without any
> problem, it calls the super method.
>
>
>
>
>
> --------------------------------------------------
> From: "Serkan Camurcuoglu" <se...@telenity.com>
> Sent: Friday, October 10, 2008 9:34 AM
> To: <us...@wicket.apache.org>
> Subject: Re: Fw: DownloadLink, can anyone help me?
>
>> do you know whether the request reaches your downloadlink? for example,
>> you could check it by using:
>>
>> add(new DownloadLink("download", fileModel) {
>> @Override
>> public void onClick() {
>> System.out.println("onClick of download link called!");
>> try {
>> super.onClick();
>> System.out.println("super onClick was successful");
>> } catch (Throwable t) {
>> t.printStackTrace();
>> }
>> }
>> });
>>
>> or you could debug it of course..
>>
>>
>>
>> Pablo Scagno wrote:
>>> FYI
>>> --------------------------------------------------
>>> From: "Pablo Scagno" <ps...@hotmail.com>
>>> Sent: Thursday, October 09, 2008 5:54 PM
>>> To: <us...@wicket.apache.org>
>>> Subject: DownloadLink
>>>
>>>> Hi,
>>>> I was trying to use DownloadLink but for some reason I couldn't make
>>>> it work.
>>>> I'm trying to insert the link in a grid, but when I test the
>>>> application and I click the link, an error page appears "The webPage
>>>> cannot be found"
>>>>
>>>> this url appears in the page
>>>> http://..../?wicket:interface=:7:table:rows:1:cells:2:cell:download::ILinkListener::
>>>>
>>>> here Is the code where I create the link
>>>>
>>>> public class ActionPanel extends Panel{
>>>> public ActionPanel(String id, IModel<Document> model){
>>>> super(id, model);
>>>> try {
>>>> File file = ((Document)model.getObject()).getOriginalFile();
>>>> IModel<File> fileModel = new Model<File>();
>>>> fileModel.setObject(file);
>>>> add(new DownloadLink("download",fileModel));
>>>> } catch (FileNotFoundException e) {
>>>> e.printStackTrace();
>>>> }
>>>> }
>>>> }
>>>>
>>>> I've debug the app and I saw that the file was loaded, and the link was
>>>> created without any problem. Can anyone tell me if need anything else
>>>> to make it works?
>>>>
>>>> Thanks in advance
>>>>
>>>> Pablo
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Fw: DownloadLink, can anyone help me?
Posted by Pablo Scagno <ps...@hotmail.com>.
First of all thanks for you help,
Regarding my problem, yes, I debug It and the code executed without any
problem, it calls the super method.
--------------------------------------------------
From: "Serkan Camurcuoglu" <se...@telenity.com>
Sent: Friday, October 10, 2008 9:34 AM
To: <us...@wicket.apache.org>
Subject: Re: Fw: DownloadLink, can anyone help me?
> do you know whether the request reaches your downloadlink? for example,
> you could check it by using:
>
> add(new DownloadLink("download", fileModel) {
> @Override
> public void onClick() {
> System.out.println("onClick of download link called!");
> try {
> super.onClick();
> System.out.println("super onClick was successful");
> } catch (Throwable t) {
> t.printStackTrace();
> }
> }
> });
>
> or you could debug it of course..
>
>
>
> Pablo Scagno wrote:
>> FYI
>> --------------------------------------------------
>> From: "Pablo Scagno" <ps...@hotmail.com>
>> Sent: Thursday, October 09, 2008 5:54 PM
>> To: <us...@wicket.apache.org>
>> Subject: DownloadLink
>>
>>> Hi,
>>> I was trying to use DownloadLink but for some reason I couldn't make it
>>> work.
>>> I'm trying to insert the link in a grid, but when I test the application
>>> and I click the link, an error page appears "The webPage cannot be
>>> found"
>>>
>>> this url appears in the page
>>> http://..../?wicket:interface=:7:table:rows:1:cells:2:cell:download::ILinkListener::
>>>
>>> here Is the code where I create the link
>>>
>>> public class ActionPanel extends Panel{
>>> public ActionPanel(String id, IModel<Document> model){
>>> super(id, model);
>>> try {
>>> File file = ((Document)model.getObject()).getOriginalFile();
>>> IModel<File> fileModel = new Model<File>();
>>> fileModel.setObject(file);
>>> add(new DownloadLink("download",fileModel));
>>> } catch (FileNotFoundException e) {
>>> e.printStackTrace();
>>> }
>>> }
>>> }
>>>
>>> I've debug the app and I saw that the file was loaded, and the link was
>>> created without any problem. Can anyone tell me if need anything else to
>>> make it works?
>>>
>>> Thanks in advance
>>>
>>> Pablo
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Fw: DownloadLink, can anyone help me?
Posted by Serkan Camurcuoglu <se...@telenity.com>.
do you know whether the request reaches your downloadlink? for example,
you could check it by using:
add(new DownloadLink("download", fileModel) {
@Override
public void onClick() {
System.out.println("onClick of download link called!");
try {
super.onClick();
System.out.println("super onClick was successful");
} catch (Throwable t) {
t.printStackTrace();
}
}
});
or you could debug it of course..
Pablo Scagno wrote:
> FYI
> --------------------------------------------------
> From: "Pablo Scagno" <ps...@hotmail.com>
> Sent: Thursday, October 09, 2008 5:54 PM
> To: <us...@wicket.apache.org>
> Subject: DownloadLink
>
>> Hi,
>> I was trying to use DownloadLink but for some reason I couldn't make
>> it work.
>> I'm trying to insert the link in a grid, but when I test the
>> application and I click the link, an error page appears "The webPage
>> cannot be found"
>>
>> this url appears in the page
>> http://..../?wicket:interface=:7:table:rows:1:cells:2:cell:download::ILinkListener::
>>
>>
>> here Is the code where I create the link
>>
>> public class ActionPanel extends Panel{
>> public ActionPanel(String id, IModel<Document> model){
>> super(id, model);
>> try {
>> File file = ((Document)model.getObject()).getOriginalFile();
>> IModel<File> fileModel = new Model<File>();
>> fileModel.setObject(file);
>> add(new DownloadLink("download",fileModel));
>> } catch (FileNotFoundException e) {
>> e.printStackTrace();
>> }
>> }
>> }
>>
>> I've debug the app and I saw that the file was loaded, and the link
>> was created without any problem. Can anyone tell me if need anything
>> else to make it works?
>>
>> Thanks in advance
>>
>> Pablo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org