Mounting and displaying correct URL's
I am mounting url's like mountPage(ProductType/${Category},ProductTypePage.class) and i read the Parameter Category and pull the info from the database So if i am on the page for food the URL is /ProductType/Food now inside my application im using redirects which redirect to these pages by pasing the Object Category food ; So setResponsePage(new ProductTypesPage(food)); but when i do this the URL shows up as /ProductType is there any way i can get the URL to show up correctly i know that category.getName is the string I am passing as parameter so if i could show the URL correctly so that users could bookmark it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-and-displaying-correct-URL-s-tp3992126p3992126.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Mounting and displaying correct URL's
use setResponsePage(ProductTypePage.class, new PageParameters().put(Category, Food)); -igor On Fri, Nov 4, 2011 at 5:11 PM, anantasthana anant.a...@gmail.com wrote: I am mounting url's like mountPage(ProductType/${Category},ProductTypePage.class) and i read the Parameter Category and pull the info from the database So if i am on the page for food the URL is /ProductType/Food now inside my application im using redirects which redirect to these pages by pasing the Object Category food ; So setResponsePage(new ProductTypesPage(food)); but when i do this the URL shows up as /ProductType is there any way i can get the URL to show up correctly i know that category.getName is the string I am passing as parameter so if i could show the URL correctly so that users could bookmark it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-and-displaying-correct-URL-s-tp3992126p3992126.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Mounting and displaying correct URL's
Thanks for the Quick and extremely helpful reply. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-and-displaying-correct-URL-s-tp3992126p3992140.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org