hard to tell without seeing your setup. do other mounted pages work?
do you use the /* mapping with your wicket filter? -igor On Thu, Jan 28, 2010 at 6:49 PM, Ashika Umanga Umagiliya <auma...@biggjapan.com> wrote: > Thank igor, > > I mounted my SeachPage in my Application class as follows: > > public NihonBareApplication() > { > mount(new > QueryStringUrlCodingStrategy("/search",edu.jst.nihonbare.web.pages.SearchResultsPage.class)); > } > > and put a constructor in 'SearchResultPage' as you told. > > But now when I access the page like > "http://localhost:8080/nihonbare-web/search?query=Rice" > It direct to the Home page and without any CSS styles, not to SearchPage? > > What I am doing wrong? > > Thanks in advance. > > > Igor Vaynberg wrote: >> >> mount your page using QueryStringUrlCodingStrategy. create a >> constructor that takes PageParameters instance - this is where the >> query string will be. >> >> since you know the mount, et "/mysearch" use that to construct the url >> in the external app. >> >> -igor >> >> On Thu, Jan 28, 2010 at 5:38 PM, Ashika Umanga Umagiliya >> <auma...@biggjapan.com> wrote: >> >>> >>> Greetings, >>> >>> In application I am developing,client want to open the wicket 'SeachPage' >>> from external page. >>> >>> My search page is like: >>> >>> public SearchPage extends WebPage{ >>> private String queryString; >>> public SearchPage(String queryString){ >>> this.queryString=queryString; >>> . >>> . >>> } >>> >>> } >>> >>> and from other Pages I open it as: >>> >>> >>> protected void onSubmit() { SearchResultsPage >>> p=new SearchResultsPage(""+queryText.getModel().getObject()); >>> setResponsePage(p); >>> } >>> >>> >>> How can I pass this 'queryString' from an external app ? How to resolve >>> the >>> wicket URL pattern >>> (http://localhost:8080/nihonbare-web/?wicket:interface=:11::::) for >>> parameter passing ? >>> >>> >>> Thanks in advance >>> >>> >>> --------------------------------------------------------------------- >>> 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 >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org