Re: Referring Page links to a deployed context
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
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]
Re: Referring Page links to a deployed context
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
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
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]
Re: Referring Page links to a deployed context
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]
Re: Referring Page links to a deployed context
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]
Referring Page links to a deployed context
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]