RE: DownloadLink problem

2010-03-02 Thread Martin Asenov
It doesn't... :-) Thank you anyway! :-) -Original Message- From: Riyad Kalla [mailto:rka...@gmail.com] Sent: Tuesday, March 02, 2010 6:35 PM To: users@wicket.apache.org Subject: Re: DownloadLink problem Martin, If it makes you feel any better, it would have been a week or longer b

Re: DownloadLink problem

2010-03-02 Thread Riyad Kalla
tin Asenov [mailto:mase...@velti.com] > Sent: Tuesday, March 02, 2010 4:34 PM > To: users@wicket.apache.org > Subject: RE: DownloadLink problem > > Thanks Ernesto! > > But I want to have the link invisible on startup (because the file's > empty). So I have th

RE: DownloadLink problem

2010-03-02 Thread Martin Asenov
help! Best, Martin -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Tuesday, March 02, 2010 4:34 PM To: users@wicket.apache.org Subject: RE: DownloadLink problem Thanks Ernesto! But I want to have the link invisible on startup (because the file's empty). So I

RE: DownloadLink problem

2010-03-02 Thread Martin Asenov
sed off by this one!!! g Regards, Martin -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Tuesday, March 02, 2010 3:50 PM To: users@wicket.apache.org Subject: Re: DownloadLink problem Weird. Just try this example: import java.io.Fi

Re: DownloadLink problem

2010-03-02 Thread Ernesto Reinaldo Barreiro
sto On Tue, Mar 2, 2010 at 2:24 PM, Martin Asenov wrote: > Unfortunately doesn't work this way... The model is never refreshed... > > -Original Message- > From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] > Sent: Tuesday, March 02, 2010 2:31 PM > To: users@

Re: DownloadLink problem

2010-03-02 Thread James Carman
2, 2010 2:31 PM > To: users@wicket.apache.org > Subject: Re: DownloadLink problem > > Not sure... but could you try something like: > > DownloadLink downloadLink = new DownloadLink("link_id", new > AbstractReadOnlyModel(){ >            public Fil

RE: DownloadLink problem

2010-03-02 Thread Martin Asenov
Unfortunately doesn't work this way... The model is never refreshed... -Original Message- From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Sent: Tuesday, March 02, 2010 2:31 PM To: users@wicket.apache.org Subject: Re: DownloadLink problem Not sure... but could yo

Re: DownloadLink problem

2010-03-02 Thread Ernesto Reinaldo Barreiro
Not sure... but could you try something like: DownloadLink downloadLink = new DownloadLink("link_id", new AbstractReadOnlyModel(){ public File getObject() { return this.linkModel; }; },"myfile.xxx"); downloadLink.setOutputMarkupId(true); and