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
--
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
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:
i dont think it was that bad.
-igor
On Tue, Jan 6, 2009 at 9:21 PM, John Krasnay j...@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:
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
Yellow snow should do it...
2009/1/7 wch2001 wch2...@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
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 wch2...@hotmail.com wrote:
My question
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
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
Maybe try asking the question in your native language?
**
Martin
2009/1/7 wch2001 wch2...@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
Roll your own link:
LinkFile downloadLink = new LinkFile(yourID,
yourModelThatReturnsAFile) {
private static final long serialVersionUID = 1L;
@Override
public void onClick() {
File file = getModelObject();
if
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 =
12 matches
Mail list logo