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
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
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
) {
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
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
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:
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
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,
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
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
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
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
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
, 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
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
15 matches
Mail list logo