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 fie

Re: calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi
> 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:

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(Aja

Re: Referring Page links to a deployed context

2008-01-08 Thread mbelarbi
tPage", 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

Re: Referring Page links to a deployed context

2008-01-07 Thread mbelarbi
t 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

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, >

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 Ja

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,

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

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 chan

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.

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 d

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
public IResourceStreamImpl(InputStream inputStream, >> String contentType, long size) { >> this.inputStream = inputStream; >> this.size = size; >> this.contentType = contentType; >> } >> >> pu

Re: wicket File downlaod

2007-11-26 Thread mbelarbi
est.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. >

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

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 e