Re: [Wicket-user] Wicket URLs in javascript

2007-07-20 Thread hillj2
This looks to be exactly what I need. I've added the following code to my home page class: public void renderHead(IHeaderResponse response) { response.renderOnLoadJavascript("mainUrl = '" + RequestCycle.get().urlFor(new MainPageClass()) + "'; openJSWindow()"); } Unfortunately, I'm now g

Re: [Wicket-user] Wicket URLs in javascript

2007-07-19 Thread Igor Vaynberg
RequestCycle.urlFor(Page) will do what you want -igor On 7/19/07, Joel Hill <[EMAIL PROTECTED]> wrote: > > My app's home page is nothing more than a blank page which has an onload > script which opens a new browser window and loads my app's "main" page > into it. I'm having trouble figuring out

[Wicket-user] Wicket URLs in javascript

2007-07-19 Thread Joel Hill
My app's home page is nothing more than a blank page which has an onload script which opens a new browser window and loads my app's "main" page into it. I'm having trouble figuring out how to get it to work in wicket. I don't want to make the page bookmarkable if at all possible, but I have to fi