wicket File downlaod

2007-11-26 Thread mbelarbi
Hi, I have some code that generates a pdf report file (using jasper reports). This file is stored somewhere in the project. What I need to do is be able to provide a link which makes that file available for download when clicked (downloadLink?). How do i do this using wicket? and are there any

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
opps, sorry what i meant to write was: File pdfFile = new File(test.pdf); But this doesn't really change much and the problem still remains that the file is empty (whether txt or pdf). mbelarbi wrote: Hi, I have some code that generates a pdf report file (using jasper reports

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
a file named test.pdf, at the current working directory of the application server. Output the file's path with getCanoicalPath/getAbsolutePath (or something along that line) to verify that the path of the pdf is correct first. On 26 Nov 2007, at 6:07 PM, mbelarbi wrote: opps

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
) { this.locale = locale; } public Time lastModifiedTime() { return null; } } mbelarbi schrieb: opps, sorry what i meant to write was: File pdfFile = new File(test.pdf); But this doesn't really change much and the problem still remains that the file is empty (whether

How to Pass an InputStream into a wicket Resource

2007-11-29 Thread mbelarbi
I have generated a Jasper Report as an InputStream. I would like to provide this as a download, ideally I don't want to store the report as a file, it is as an InputStream. I have looked at the Wicket ResourceLink class, but that takes in a Wicket Resource, and I have a java.io.InputStream. How

Changing a ResourceLink's resource.

2007-11-30 Thread mbelarbi
I have a: ResourceLink attachment = new ResourceLink(attachmentLink, source); add(attachment); Where source is a Resource. How do i change this ResourceLink's resource to another resource? -- View this message in context:

Re: Changing a ResourceLink's resource.

2007-11-30 Thread mbelarbi
resource. So i was looking for maybe a ResourceLink.setResource() method to change the resource. mbelarbi wrote: I have a: ResourceLink attachment = new ResourceLink(attachmentLink, source); add(attachment); Where source is a Resource. How do i change this ResourceLink's resource to another

Referring Page links to a deployed context

2008-01-07 Thread mbelarbi
Hi, If my app (MyTest) is the root context everything runs smoothly. This is because in my MyTestApplication class, in the constructor i have mount(new IndexedParamUrlCodingStrategy(/firstPage, FirstPage.class, null)); mount(new IndexedParamUrlCodingStrategy(/secondPage, SecondPage.class,

Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi
Yes MyTest is a context filter is mounted on /*. igor.vaynberg wrote: when you say www.anotherapp.com/MyTest is mytest a context and your filter is mounted on /* or is mytest the filter mapping and you are running in the root context? -igor On Jan 7, 2008 7:23 AM, mbelarbi [EMAIL

Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi
Tried itno luck:-( Erik van Oosten wrote: Try this first: mount(new IndexedParamUrlCodingStrategy(firstPage, FirstPage.class, null)); (no slash in front of firstPage) Regards, Erik. mbelarbi wrote: Hi, If my app (MyTest) is the root context everything runs smoothly

Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi
the / infront of first page from the that line of code not from: mount(new IndexedParamUrlCodingStrategy(/firstPage, FirstPage.class, null)); thanks everyone. mbelarbi wrote: Hi, If my app (MyTest) is the root context everything runs smoothly. This is because in my MyTestApplication class

Re: Referring Page links to a deployed context

2008-01-08 Thread mbelarbi
On Jan 7, 2008 8:52 AM, mbelarbi [EMAIL PROTECTED] wrote: It's ok i solved the problem. It had nothing to do with the mount code. It was more specific to what calls this links, for example firstPage is called from another page in the following way: add(new ExternalLink(firstPage, /firstPage

calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi
Hi, I want to call a javascript function ( myFunction() ) on a component's onclick event. I tried this: but then i realized that my wicket's onClick() method is overwriting the above html one. -- AjaxLink agentLink = new AjaxLink(myLink) { public void

Re: calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi
, 2008 11:05 AM, mbelarbi [EMAIL PROTECTED] wrote: Hi, I want to call a javascript function ( myFunction() ) on a component's onclick event. I tried this: a wicket:id=myLink onClick=myFunction(); but then i realized that my wicket's onClick() method is overwriting the above html one

js pop appearing behind flash

2008-02-13 Thread mbelarbi
Hi, I have a js date picker pop up when the calendar icon is clicked, exactly like this one on the wicket example pages: http://wicketstuff.org/wicket13/dates/ Mine is used in exactly the same way, I have [ input type=text wicket:id=dateTextField / ] on the html side and on the java side, a