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  [  ] on the html side and on the java side, a
datePicker is added to the dateTextField field [ dateTextField.add(new
DatePicker()); ]

Like I said exactly like in the example from wicket. The problem I have is
that I have a flash right under the date text field, and when ever the
calendar icon is clicked the calendar popup is rendered behind the flash.
How do I get it to show ontop of the flash?

Thanks
-- 
View this message in context: 
http://www.nabble.com/js-pop-appearing-behind-flash-tp15456839p15456839.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi

How would i do that for what i have?

Gerolf Seitz wrote:
> 
> you need to override getAjaxCallDecorator() on the AjaxLink and return a
> new
> 
> AjaxCallDecorator that either prepends, appends (or both) your custom
> javascript to the javascript created by the link.
> 
> cheers,
>   Gerolf
> 
> On Jan 10, 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.
>>
>> --
>>AjaxLink agentLink = new AjaxLink("myLink") {
>>
>>public void onClick(AjaxRequestTarget target) {
>>/* Some Code */
>>}
>>};
>> -
>>
>> So then i tried this:
>>
>> --
>>AjaxLink agentLink = new AjaxLink("myLink") {
>>
>>public void onClick(AjaxRequestTarget target) {
>>target.appendJavascript("alert('hi from
>> wicket');");
>>/* Some Code */
>>}
>>};
>> -
>>
>>
>> But i don't see the alert when i click the link, can someone help me out?
>> --
>> View this message in context:
>> http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14730927.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14732418.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 onClick(AjaxRequestTarget target) { 

/* Some Code */
}
};
-

So then i tried this:

--
AjaxLink agentLink = new AjaxLink("myLink") {

public void onClick(AjaxRequestTarget target) {
target.appendJavascript("alert('hi from wicket');");

/* Some Code */
}
};
-


But i don't see the alert when i click the link, can someone help me out?
-- 
View this message in context: 
http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-tp14730927p14730927.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Referring Page links to a deployed context

2008-01-08 Thread mbelarbi

Thanks alot for your help.



igor.vaynberg wrote:
> 
> ExternalLink is used to generate links to nonwicket resources, so
> there you have full control of the url. if you want to generate a link
> to the page you should do
> 
> add(new BookmarkablePageLink("firstPage", FirstPage.class));
> 
> -igor
> 
> 
> 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"));
>>
>>
>> the solution is exactly what Erik Van saidremove the "/" infront of
>> firstPage from the the line of code above, 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, in the constructor i have
>> >
>> > mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
>> > null));
>> > mount(new IndexedParamUrlCodingStrategy("/secondPage",
>> SecondPage.class,
>> > null));
>> > mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
>> > null));
>> >
>> > This means that if i deployed this on saywww.MyTest.com and clicked
>> on
>> > a link which took me to the frstPage the url will be
>> > www.MyTest.com/firstPage
>> >
>> > Now, this is when i get a problemwhen the deployed context isn't
>> the
>> > root, for example if the root is www.anotherApp.com and my app runs on
>> > www.anotherApp.com/MyTest, when i click on first page now it will try
>> and
>> > look for www.anotherApp.com/firstPage not
>> > www.anotherapp.com/MyTest/firstPage.
>> >
>> > in a nutshell the problem is that all the links in the app refer to the
>> > root context and not the deployed context.
>> >
>> > so basically what i'm looking for is something like this
>> > mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
>> > IS]+"/firstPage", FirstPage.class, null));
>> >
>> > How can i fix this?
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670116.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14686131.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi

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"));


the solution is exactly what Erik Van saidremove 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, in the constructor i have
> 
> mount(new IndexedParamUrlCodingStrategy("/firstPage", FirstPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/secondPage", SecondPage.class,
> null));
> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
> null));
> 
> This means that if i deployed this on saywww.MyTest.com and clicked on
> a link which took me to the frstPage the url will be
> www.MyTest.com/firstPage
> 
> Now, this is when i get a problemwhen the deployed context isn't the
> root, for example if the root is www.anotherApp.com and my app runs on
> www.anotherApp.com/MyTest, when i click on first page now it will try and
> look for www.anotherApp.com/firstPage not
> www.anotherapp.com/MyTest/firstPage. 
> 
> in a nutshell the problem is that all the links in the app refer to the
> root context and not the deployed context.
> 
> so basically what i'm looking for is something like this
> mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
> IS]+"/firstPage", FirstPage.class, null));
> 
> How can i fix this?
> 

-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670116.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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. 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,
>> null));
>> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
>> null));
>>
>> This means that if i deployed this on saywww.MyTest.com and clicked
>> on a
>> link which took me to the frstPage the url will be
>> www.MyTest.com/firstPage
>>
>> Now, this is when i get a problemwhen the deployed context isn't the
>> root, for example if the root is www.anotherApp.com and my app runs on
>> www.anotherApp.com/MyTest, when i click on first page now it will try and
>> look for www.anotherApp.com/firstPage not
>> www.anotherapp.com/MyTest/firstPage. 
>>
>> in a nutshell the problem is that all the links in the app refer to the
>> root
>> context and not the deployed context.
>>
>> so basically what i'm looking for is something like this
>> mount(new IndexedParamUrlCodingStrategy([WHAT EVER THE DEPLOYED CONTEXT
>> IS]+"/firstPage", FirstPage.class, null));
>>
>> How can i fix this?
>>   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670103.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 PROTECTED]> wrote:
>>
>> 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,
>> null));
>> mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
>> null));
>>
>> This means that if i deployed this on saywww.MyTest.com and clicked
>> on a
>> link which took me to the frstPage the url will be
>> www.MyTest.com/firstPage
>>
>> Now, this is when i get a problemwhen the deployed context isn't the
>> root, for example if the root is
>> www.anotherapp.com and my app is on www.anotherapp.com/MyTest, when i
>> click
>> on first page now it will try and look for www.anotherapp.com/firstPage
>> not
>> www.anotherapp.com/MyTest/firstPage.
>>
>> in a nutshell the problem is that all the links in the app refer to the
>> root
>> context and not the deployed context.
>>
>> How can i fix this?
>> --
>> View this message in context:
>> http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14668169.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14670101.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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,
null));
mount(new IndexedParamUrlCodingStrategy("/thirdPage", ThirdPage.class,
null));

This means that if i deployed this on saywww.MyTest.com and clicked on a
link which took me to the frstPage the url will be www.MyTest.com/firstPage

Now, this is when i get a problemwhen the deployed context isn't the
root, for example if the root is
www.anotherapp.com and my app is on www.anotherapp.com/MyTest, when i click
on first page now it will try and look for www.anotherapp.com/firstPage not
www.anotherapp.com/MyTest/firstPage. 

in a nutshell the problem is that all the links in the app refer to the root
context and not the deployed context.

How can i fix this?
-- 
View this message in context: 
http://www.nabble.com/Referring-Page-links-to-a-deployed-context-tp14668169p14668169.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Retrieving TextField and TextArea text on submit

2007-12-18 Thread mbelarbi

I have a simple TextArea in a simple Form that looks something like this:

public class MyForm extends Form {
TextArea message
TextField to;
TextField subject;

public EditorForm(String id) {
super(id);

message = new TextArea("textArea");
to = new TextField("textArea");
subject = new TextField("textArea");

add(to);
add(subject);
add(message);
add(new Button("submit"));
}

protected void onSubmit() {
System.out.println("To:" + [WHAT EVER THE 'TO' TEXTFIELD HAS] )
System.out.println("Subject:" + [WHAT EVER THE 'SUBJECT' 
TEXTFIELD HAS] )
System.out.println("Message:" + [WHAT EVER THE 'MESSAGE' 
TEXTAREA HAS] )
}
}


How do I retrieve and simply print out what ever the user has inputted into
the text fields and text area on submit? It seems like a simple thing, am I
missing something?

Thank you.
-- 
View this message in context: 
http://www.nabble.com/Retrieving-TextField-and-TextArea-text-on-submit-tp14395591p14395591.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing a ResourceLink's resource.

2007-11-30 Thread mbelarbi

My ResourceLink is declared and initiallized, otherwise wicket will complain
about me adding a component to markup which is null etc... so i have to
declare it and initialize it. But later on the source is modified, but when
clicking on the ResourceLink it is not proving the newly changed 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 resource?
> 

-- 
View this message in context: 
http://www.nabble.com/Changing-a-ResourceLink%27s-resource.-tf4902160.html#a14042465
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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: 
http://www.nabble.com/Changing-a-ResourceLink%27s-resource.-tf4902160.html#a14042457
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 do I get a Wicket Resource from an InputStream?

Other than using a ResourceLink, is there another way of doing this? maybe
by using the InputStream directly?

thanks.
-- 
View this message in context: 
http://www.nabble.com/How-to-Pass-an-InputStream-into-a-wicket-Resource-tf4896249.html#a14022968
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket File downlaod

2007-11-26 Thread mbelarbi
 private static final long serialVersionUID = 1L;
>>
>>  private Locale locale = null;
>>  private String contentType = null;
>>  private InputStream inputStream = null;
>>  private long size;
>>
>>  /**
>>   * @param fileInputStream
>>   * @param contentType
>>   * @param file
>>   */
>>  public IResourceStreamImpl(InputStream inputStream,
>>  String contentType, long size) {
>>  this.inputStream = inputStream;
>>  this.size = size;
>>  this.contentType = contentType;
>>  }
>>
>>  public void close() throws IOException {
>>  this.inputStream.close();
>>  }
>>
>>  public InputStream getInputStream() throws
>> ResourceStreamNotFoundException {
>>  return this.inputStream;
>>  }
>>
>>  public String getContentType() {
>>  return (this.contentType);
>>  }
>>
>>  public Locale getLocale() {
>>  return (this.locale);
>>  }
>>
>>  public long length() {
>>  return this.size;
>>  }
>>
>>  public void setLocale(Locale locale) {
>>  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 txt or pdf).
>>>
>>>
>>> mbelarbi wrote:
>>>> 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 examples.
>>>>
>>>> I've tried this:
>>>>
>>>> File pdfFile = new File("test.txt");
>>>> DownloadLink dLink = new DownloadLink("dLink", pdfFile);
>>>>
>>>>
>>>> This does exactly what i am looking for (bring up a file for download),
>>>> but this file is empty, it has no content. This pdf file resides in the
>>>> same hierarchy as the source code file.
>>>>
>>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-File-downlaod-tf4874269.html#a13948431
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wicket File downlaod

2007-11-26 Thread mbelarbi

thanks Kent lai, a system print for the file's getCanoicalPath seemed to show
that the file path i was passing in was incorrect. Now it's resolved.

Thanks



kent lai wrote:
> 
> The file really ought to reside in another location, but anyway...
> I think new File("test.pdf") would actually indicate 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, 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).
>>> 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 examples.
>>>
>>> I've tried this:
>>>
>>> File pdfFile = new File("test.txt");
>>> DownloadLink dLink = new DownloadLink("dLink", pdfFile);
>>>
>>>
>>> This does exactly what i am looking for (bring up a file for  
>>> download),
>>> but this file is empty, it has no content. This pdf file resides  
>>> in the
>>> same hierarchy as the source code file.
>>>
>>
>> -- 
>> View this message in context: http://www.nabble.com/wicket-File- 
>> downlaod-tf4874269.html#a13946991
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-File-downlaod-tf4874269.html#a13947358
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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).
> 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 examples.
> 
> I've tried this:
> 
> File pdfFile = new File("test.txt");
> DownloadLink dLink = new DownloadLink("dLink", pdfFile);
> 
> 
> This does exactly what i am looking for (bring up a file for download),
> but this file is empty, it has no content. This pdf file resides in the
> same hierarchy as the source code file.
> 

-- 
View this message in context: 
http://www.nabble.com/wicket-File-downlaod-tf4874269.html#a13946991
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 examples.

I've tried this:

File pdfFile = new File("test.txt");
DownloadLink dLink = new DownloadLink("dLink", pdfFile);


This does exactly what i am looking for (bring up a file for download), but
this file is empty, it has no content. This pdf file resides in the same
hierarchy as the source code file.
-- 
View this message in context: 
http://www.nabble.com/wicket-File-downlaod-tf4874269.html#a13946961
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]