You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by wch2001 <wc...@hotmail.com> on 2009/01/07 02:55:08 UTC
anyone has some suggestion? thanks a lot
--
View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21323395.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: sorry, what do u mean for that?
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Yellow snow should do it...
2009/1/7 wch2001 <wc...@hotmail.com>:
>
> My question is
>
> I am doing downloadLink , when the file is existed, it is ok to download it,
> but when the file is not existed, no any error message "No file exist!" to
> popup!
>
> According to debug, i can see it already go to the line:
> target.appendJavascript("alert('No file exist!')");
>
>
>
>
> John Krasnay wrote:
>>
>> It was a bad joke. You asked for suggestions but didn't explain what
>> your problem was.
>>
>> jk
>>
>> On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: sorry, what do u mean for that?
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Maybe try asking the question in your native language?
**
Martin
2009/1/7 wch2001 <wc...@hotmail.com>:
>
>
>
>
> I use DownloadLink, when file is not existed, there is not any info message.
>
> how to solve it?
>
> I want to show some message like "No file finds" when the file is not
> existed
>
> thanks a lot
>
>
>
> Jeremy Thomerson-5 wrote:
>>
>> Well, interestingly enough, I still fail to find a question in your
>> question. Maybe a little more code and an accurate description of your
>> problem would help us give you a more sane answer, which we'd happily do.
>>
>> On Wed, Jan 7, 2009 at 12:19 AM, wch2001 <wc...@hotmail.com> wrote:
>>
>>>
>>> My question is
>>>
>>> I am doing downloadLink , when the file is existed, it is ok to download
>>> it,
>>> but when the file is not existed, no any error message "No file exist!"
>>> to
>>> popup!
>>>
>>> According to debug, i can see it already go to the line:
>>> target.appendJavascript("alert('No file exist!')");
>>>
>>>
>>>
>>>
>>> John Krasnay wrote:
>>> >
>>> > It was a bad joke. You asked for suggestions but didn't explain what
>>> > your problem was.
>>> >
>>> > jk
>>> >
>>> > On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>>> >>
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
>>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> 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
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>
>
>
> --
> View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326180.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: sorry, what do u mean for that?
Posted by Jeremy Thomerson <je...@wickettraining.com>.
It's late and my mind is going to sleep, but I think it's because an ajax
link there will need the AjaxRequestTarget, which you're replacing. I'm
pretty sure you'll have to redirect to it from within an ajax request.
Try with a normal link first to test that it's working. Then you'll
probably need to find a way to redirect from the ajax to download.
On Wed, Jan 7, 2009 at 1:57 AM, wch2001 <wc...@hotmail.com> wrote:
>
>
> Thanks , Jeremy,
>
> I tried to use AjaxSubmitLink , to
>
>
> @Override
> protected void onSubmit(AjaxRequestTarget target, Form form) {
> final File f1 = new File(path.trim() + "/" + fname);
>
> if (f1.exists()) {
>
> final String fn = f1.getName();
>
> IResourceStream resourceStream = new
> FileResourceStream(new org.apache.wicket.util.file.File(f1));
>
> getRequestCycle().setRequestTarget(new
> ResourceStreamRequestTarget(resourceStream) {
>
> @Override
> public String getFileName() {
> return fn;
> }
> });
>
>
> }
> }
>
>
> But when i clicked the AjaxSubmitLink, i can not get the popup window for
> saving. I mean when i clicked the ajaxsumbitlink, there is nothing , not
> like downloadlink to popup window.
>
> can u give me some suggestion?
>
>
> thanks
>
>
>
> Jeremy Thomerson-5 wrote:
> >
> > Roll your own link:
> >
> > Link<File> downloadLink = new Link<File>("yourID",
> > yourModelThatReturnsAFile) {
> > private static final long serialVersionUID = 1L;
> >
> > @Override
> > public void onClick() {
> > File file = getModelObject();
> > if (file.exists()) {
> > IResourceStream rs = new FileResourceStream(file);
> > getRequestCycle().setRequestTarget(new
> > ResourceStreamRequestTarget(rs));
> > } else {
> > error(getString("nonexistent-file"));
> > }
> > }
> > };
> >
> > That code is mostly copied from DownloadLink.
> >
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> > On Wed, Jan 7, 2009 at 1:35 AM, wch2001 <wc...@hotmail.com> wrote:
> >
> >>
> >>
> >>
> >>
> >> I use DownloadLink, when file is not existed, there is not any info
> >> message.
> >>
> >> how to solve it?
> >>
> >> I want to show some message like "No file finds" when the file is not
> >> existed
> >>
> >> thanks a lot
> >>
> >>
> >>
> >> Jeremy Thomerson-5 wrote:
> >> >
> >> > Well, interestingly enough, I still fail to find a question in your
> >> > question. Maybe a little more code and an accurate description of
> your
> >> > problem would help us give you a more sane answer, which we'd happily
> >> do.
> >> >
> >> > On Wed, Jan 7, 2009 at 12:19 AM, wch2001 <wc...@hotmail.com> wrote:
> >> >
> >> >>
> >> >> My question is
> >> >>
> >> >> I am doing downloadLink , when the file is existed, it is ok to
> >> download
> >> >> it,
> >> >> but when the file is not existed, no any error message "No file
> >> exist!"
> >> >> to
> >> >> popup!
> >> >>
> >> >> According to debug, i can see it already go to the line:
> >> >> target.appendJavascript("alert('No file exist!')");
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> John Krasnay wrote:
> >> >> >
> >> >> > It was a bad joke. You asked for suggestions but didn't explain
> what
> >> >> > your problem was.
> >> >> >
> >> >> > jk
> >> >> >
> >> >> > On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> >>
> >>
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
> >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> 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
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> >> For additional commands, e-mail: users-help@wicket.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Jeremy Thomerson
> >> > http://www.wickettraining.com
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326180.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326415.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Jeremy Thomerson
http://www.wickettraining.com
Re: sorry, what do u mean for that?
Posted by wch2001 <wc...@hotmail.com>.
Thanks , Jeremy,
I tried to use AjaxSubmitLink , to
@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
final File f1 = new File(path.trim() + "/" + fname);
if (f1.exists()) {
final String fn = f1.getName();
IResourceStream resourceStream = new
FileResourceStream(new org.apache.wicket.util.file.File(f1));
getRequestCycle().setRequestTarget(new
ResourceStreamRequestTarget(resourceStream) {
@Override
public String getFileName() {
return fn;
}
});
}
}
But when i clicked the AjaxSubmitLink, i can not get the popup window for
saving. I mean when i clicked the ajaxsumbitlink, there is nothing , not
like downloadlink to popup window.
can u give me some suggestion?
thanks
Jeremy Thomerson-5 wrote:
>
> Roll your own link:
>
> Link<File> downloadLink = new Link<File>("yourID",
> yourModelThatReturnsAFile) {
> private static final long serialVersionUID = 1L;
>
> @Override
> public void onClick() {
> File file = getModelObject();
> if (file.exists()) {
> IResourceStream rs = new FileResourceStream(file);
> getRequestCycle().setRequestTarget(new
> ResourceStreamRequestTarget(rs));
> } else {
> error(getString("nonexistent-file"));
> }
> }
> };
>
> That code is mostly copied from DownloadLink.
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Wed, Jan 7, 2009 at 1:35 AM, wch2001 <wc...@hotmail.com> wrote:
>
>>
>>
>>
>>
>> I use DownloadLink, when file is not existed, there is not any info
>> message.
>>
>> how to solve it?
>>
>> I want to show some message like "No file finds" when the file is not
>> existed
>>
>> thanks a lot
>>
>>
>>
>> Jeremy Thomerson-5 wrote:
>> >
>> > Well, interestingly enough, I still fail to find a question in your
>> > question. Maybe a little more code and an accurate description of your
>> > problem would help us give you a more sane answer, which we'd happily
>> do.
>> >
>> > On Wed, Jan 7, 2009 at 12:19 AM, wch2001 <wc...@hotmail.com> wrote:
>> >
>> >>
>> >> My question is
>> >>
>> >> I am doing downloadLink , when the file is existed, it is ok to
>> download
>> >> it,
>> >> but when the file is not existed, no any error message "No file
>> exist!"
>> >> to
>> >> popup!
>> >>
>> >> According to debug, i can see it already go to the line:
>> >> target.appendJavascript("alert('No file exist!')");
>> >>
>> >>
>> >>
>> >>
>> >> John Krasnay wrote:
>> >> >
>> >> > It was a bad joke. You asked for suggestions but didn't explain what
>> >> > your problem was.
>> >> >
>> >> > jk
>> >> >
>> >> > On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>> >> >>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
>> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> 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
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> > --
>> > Jeremy Thomerson
>> > http://www.wickettraining.com
>> >
>> >
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326180.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326415.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: sorry, what do u mean for that?
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Roll your own link:
Link<File> downloadLink = new Link<File>("yourID",
yourModelThatReturnsAFile) {
private static final long serialVersionUID = 1L;
@Override
public void onClick() {
File file = getModelObject();
if (file.exists()) {
IResourceStream rs = new FileResourceStream(file);
getRequestCycle().setRequestTarget(new
ResourceStreamRequestTarget(rs));
} else {
error(getString("nonexistent-file"));
}
}
};
That code is mostly copied from DownloadLink.
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Jan 7, 2009 at 1:35 AM, wch2001 <wc...@hotmail.com> wrote:
>
>
>
>
> I use DownloadLink, when file is not existed, there is not any info
> message.
>
> how to solve it?
>
> I want to show some message like "No file finds" when the file is not
> existed
>
> thanks a lot
>
>
>
> Jeremy Thomerson-5 wrote:
> >
> > Well, interestingly enough, I still fail to find a question in your
> > question. Maybe a little more code and an accurate description of your
> > problem would help us give you a more sane answer, which we'd happily do.
> >
> > On Wed, Jan 7, 2009 at 12:19 AM, wch2001 <wc...@hotmail.com> wrote:
> >
> >>
> >> My question is
> >>
> >> I am doing downloadLink , when the file is existed, it is ok to download
> >> it,
> >> but when the file is not existed, no any error message "No file exist!"
> >> to
> >> popup!
> >>
> >> According to debug, i can see it already go to the line:
> >> target.appendJavascript("alert('No file exist!')");
> >>
> >>
> >>
> >>
> >> John Krasnay wrote:
> >> >
> >> > It was a bad joke. You asked for suggestions but didn't explain what
> >> > your problem was.
> >> >
> >> > jk
> >> >
> >> > On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
> >> >>
> >> >>
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
> >> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> 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
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326180.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: sorry, what do u mean for that?
Posted by wch2001 <wc...@hotmail.com>.
I use DownloadLink, when file is not existed, there is not any info message.
how to solve it?
I want to show some message like "No file finds" when the file is not
existed
thanks a lot
Jeremy Thomerson-5 wrote:
>
> Well, interestingly enough, I still fail to find a question in your
> question. Maybe a little more code and an accurate description of your
> problem would help us give you a more sane answer, which we'd happily do.
>
> On Wed, Jan 7, 2009 at 12:19 AM, wch2001 <wc...@hotmail.com> wrote:
>
>>
>> My question is
>>
>> I am doing downloadLink , when the file is existed, it is ok to download
>> it,
>> but when the file is not existed, no any error message "No file exist!"
>> to
>> popup!
>>
>> According to debug, i can see it already go to the line:
>> target.appendJavascript("alert('No file exist!')");
>>
>>
>>
>>
>> John Krasnay wrote:
>> >
>> > It was a bad joke. You asked for suggestions but didn't explain what
>> > your problem was.
>> >
>> > jk
>> >
>> > On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
--
View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326180.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: sorry, what do u mean for that?
Posted by wch2001 <wc...@hotmail.com>.
I use DownloadLink, when file is not existed, there is not any info message.
how to solve it?
thanks a lot
Jeremy Thomerson-5 wrote:
>
> Well, interestingly enough, I still fail to find a question in your
> question. Maybe a little more code and an accurate description of your
> problem would help us give you a more sane answer, which we'd happily do.
>
> On Wed, Jan 7, 2009 at 12:19 AM, wch2001 <wc...@hotmail.com> wrote:
>
>>
>> My question is
>>
>> I am doing downloadLink , when the file is existed, it is ok to download
>> it,
>> but when the file is not existed, no any error message "No file exist!"
>> to
>> popup!
>>
>> According to debug, i can see it already go to the line:
>> target.appendJavascript("alert('No file exist!')");
>>
>>
>>
>>
>> John Krasnay wrote:
>> >
>> > It was a bad joke. You asked for suggestions but didn't explain what
>> > your problem was.
>> >
>> > jk
>> >
>> > On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
--
View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21326158.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: sorry, what do u mean for that?
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Well, interestingly enough, I still fail to find a question in your
question. Maybe a little more code and an accurate description of your
problem would help us give you a more sane answer, which we'd happily do.
On Wed, Jan 7, 2009 at 12:19 AM, wch2001 <wc...@hotmail.com> wrote:
>
> My question is
>
> I am doing downloadLink , when the file is existed, it is ok to download
> it,
> but when the file is not existed, no any error message "No file exist!" to
> popup!
>
> According to debug, i can see it already go to the line:
> target.appendJavascript("alert('No file exist!')");
>
>
>
>
> John Krasnay wrote:
> >
> > It was a bad joke. You asked for suggestions but didn't explain what
> > your problem was.
> >
> > jk
> >
> > On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Jeremy Thomerson
http://www.wickettraining.com
Re: sorry, what do u mean for that?
Posted by wch2001 <wc...@hotmail.com>.
My question is
I am doing downloadLink , when the file is existed, it is ok to download it,
but when the file is not existed, no any error message "No file exist!" to
popup!
According to debug, i can see it already go to the line:
target.appendJavascript("alert('No file exist!')");
John Krasnay wrote:
>
> It was a bad joke. You asked for suggestions but didn't explain what
> your problem was.
>
> jk
>
> On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
--
View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325599.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: sorry, what do u mean for that?
Posted by Igor Vaynberg <ig...@gmail.com>.
i dont think it was that bad.
-igor
On Tue, Jan 6, 2009 at 9:21 PM, John Krasnay <jo...@krasnay.ca> wrote:
> It was a bad joke. You asked for suggestions but didn't explain what
> your problem was.
>
> jk
>
> On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>>
>>
>> --
>> View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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: sorry, what do u mean for that?
Posted by John Krasnay <jo...@krasnay.ca>.
It was a bad joke. You asked for suggestions but didn't explain what
your problem was.
jk
On Tue, Jan 06, 2009 at 07:51:25PM -0800, wch2001 wrote:
>
>
> --
> View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
sorry, what do u mean for that?
Posted by wch2001 <wc...@hotmail.com>.
--
View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21324403.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: anyone has some suggestion? thanks a lot
Posted by reiern70 <re...@gmail.com>.
The first time I saw snow I was 29 years old... So, I was implicitly
following your suggestion most of my life:-). I always found this
answer/suggestion, given by Elvis Presley, rather interesting:
“Why buy a cow when you can get milk through a fence?”
Jeremy Thomerson-5 wrote:
>
> I always found the suggestion "don't eat yellow snow" to hold true. Any
> specific topic you were thinking of? :)
>
> On Tue, Jan 6, 2009 at 7:59 PM, John Krasnay <jo...@krasnay.ca> wrote:
>
>> Buy low, sell high?
>>
>> jk
>>
>> On Tue, Jan 06, 2009 at 05:55:08PM -0800, wch2001 wrote:
>> >
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21323395.html
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > 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
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21325383.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: anyone has some suggestion? thanks a lot
Posted by Jeremy Thomerson <je...@wickettraining.com>.
I always found the suggestion "don't eat yellow snow" to hold true. Any
specific topic you were thinking of? :)
On Tue, Jan 6, 2009 at 7:59 PM, John Krasnay <jo...@krasnay.ca> wrote:
> Buy low, sell high?
>
> jk
>
> On Tue, Jan 06, 2009 at 05:55:08PM -0800, wch2001 wrote:
> >
> >
> > --
> > View this message in context:
> http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21323395.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > 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: anyone has some suggestion? thanks a lot
Posted by John Krasnay <jo...@krasnay.ca>.
Buy low, sell high?
jk
On Tue, Jan 06, 2009 at 05:55:08PM -0800, wch2001 wrote:
>
>
> --
> View this message in context: http://www.nabble.com/Help%2CDownloadLink%2C-when-file-is-not-existed%2C-not-error-message-tp21307695p21323395.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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